make_result( array( 'id' => 'rest_api_exposed', 'title' => __( 'REST API is publicly accessible', 'aipatch-security-scanner' ), 'description' => __( 'The WordPress REST API exposes user enumeration and other data to unauthenticated requests.', 'aipatch-security-scanner' ), 'severity' => 'low', 'confidence' => 'high', 'category' => 'configuration', 'why_it_matters' => __( 'Attackers can enumerate usernames via /wp-json/wp/v2/users and gather information about your site structure.', 'aipatch-security-scanner' ), 'recommendation' => __( 'Enable REST API restrictions from the Hardening page. Compatible mode keeps public endpoints working.', 'aipatch-security-scanner' ), 'dismissible' => true, 'evidence' => 'REST API restrictions not enabled in hardening settings', 'fixable' => true, ) ), ); } }