make_result( array( 'id' => 'backup_files_exposed', 'title' => $this->get_title(), 'severity' => AIPSC_Audit_Check_Result::SEVERITY_HIGH, 'confidence' => AIPSC_Audit_Check_Result::CONFIDENCE_HIGH, 'description' => sprintf( /* translators: %d: Number of backup files or directories found in the web root. */ __( 'Found %d potentially sensitive backup file(s) in the web root.', 'aipatch-security-scanner' ), count( $found ) ), 'why_it_matters' => __( 'Backup files can expose database credentials, source code, or full database dumps to attackers.', 'aipatch-security-scanner' ), 'recommendation' => __( 'Remove backup files from the web root or move them outside the document root.', 'aipatch-security-scanner' ), 'evidence' => implode( ', ', $found ), 'meta' => array( 'files' => $found ), ) ) ); } return array( $this->make_result( array( 'id' => 'backup_files', 'title' => $this->get_title(), 'severity' => AIPSC_Audit_Check_Result::SEVERITY_INFO, 'status' => AIPSC_Audit_Check_Result::STATUS_PASS, 'description' => __( 'No common backup files found in the web root.', 'aipatch-security-scanner' ), ) ) ); } }