Tier 1: Password Guard (Bcrypt Action Authorization)
High-consequence operations (such as bulk cleanups or post restorations) require explicit re-authentication via an administrative action password. Password hashes are evaluated using PHP's native password_verify() function with cost 12 Bcrypt:
if ( defined( 'SL3CG_ACTION_PASSWORD_HASH' ) && SL3CG_ACTION_PASSWORD_HASH ) {
if ( empty( $submitted_password ) || ! password_verify( $submitted_password, SL3CG_ACTION_PASSWORD_HASH ) ) {
wp_send_json_error( [ 'message' => 'Invalid action password.' ], 403 );
}
}
Tier 2: Explicit Capability Enforcement
Every endpoint and AJAX handler rigorously checks WordPress user capabilities. The user must hold manage_options (or custom filterable capability) and have access to edit the specific post ID:
if ( ! current_user_can( 'manage_options' ) || ! current_user_can( 'edit_post', $post_id ) ) {
wp_send_json_error( [ 'message' => 'Insufficient permissions.' ], 403 );
}
Tier 3: Cryptographic Nonces & Single-Use Action Tokens
To defeat Cross-Site Request Forgery (CSRF) and replay attacks, operations require two independent tokens:
- WordPress Nonce: Scoped to the user session and specific action name.
- Single-Use Action Token: Generated during the preview phase, stored in transient storage with a strict 15-minute TTL, and immediately deleted upon consumption to prevent replay.
Tier 4: Owner-Bound Post Locking
When a post preview is requested, the post is locked to the specific user ID. If another administrator attempts to preview or clean the same post, the request is rejected. Unlocks occur automatically upon cleanup completion or after lock expiration.
Tier 5: Fail-Closed Pre-Update Backup Persistence
Unlike ordinary plugins that perform updates and then try to log or save backups, Speedlink3 Content Guardian creates the backup snapshot first and validates that the record exists before triggering any SQL UPDATE query. If the snapshot write fails for any reason, the entire operation halts immediately.
Tier 6: Binary-Exact Atomic Compare-And-Swap (CAS)
All post content updates use CAST(post_content AS BINARY) = CAST(%s AS BINARY). This ensures that character collation quirks (e.g., German umlauts, French accents, or trailing spaces) cannot mask intervening edits.
Zero External AI Telemetry & Local Execution Guarantee
100% Deterministic & Private
Speedlink3 Content Guardian makes zero HTTP calls to third-party AI APIs (no OpenAI, Gemini, Anthropic, or external telemetry). All parsing, hashing, comparison, and cleanups execute locally on your WordPress server. While deterministic link checking can perform explicit outbound HTTP requests to user-targeted URLs, your editorial content, draft revisions, and administrative credentials never leave your infrastructure.