{
"name": "Example Custom Security Rules",
"version": "1.0",
"rules": [
{
"id": "CUSTOM-ACTUATOR-HEALTH",
"kind": "path_signature",
"severity": "medium",
"category": "exposed_files",
"title": "Spring Actuator endpoint is publicly exposed (/actuator/health)",
"summary": "Diagnostic and monitoring endpoints should not be publicly accessible without access restrictions.",
"remediation": "Restrict /actuator/* in your reverse proxy or Spring Security configuration.",
"standard_ref": "OWASP ASVS V14.3 / Custom Rule",
"path": "/actuator/health",
"body_contains": "\"status\"",
"ignore_html": true
},
{
"id": "CUSTOM-HEADER-X-REQUEST-ID",
"kind": "header_missing",
"severity": "info",
"category": "security_headers",
"title": "Missing X-Request-Id tracing header",
"summary": "Internal baseline recommends returning X-Request-Id for incident and log correlation.",
"remediation": "Enable X-Request-Id header generation in Nginx/Ingress.",
"standard_ref": "Custom Policy",
"header": "x-request-id"
},
{
"id": "CUSTOM-BODY-DEBUG-MARKER",
"kind": "body_contains",
"severity": "low",
"category": "information_disclosure",
"title": "Internal debug marker found in HTML (INTERNAL_DEBUG_MARKER)",
"summary": "An internal debug marker or comment was left in the HTML response.",
"remediation": "Strip internal debug markers and comments before production deployment.",
"standard_ref": "OWASP ASVS V14.3 / Custom Rule",
"pattern": "INTERNAL_DEBUG_MARKER"
},
{
"id": "CUSTOM-JQUERY-POLICY",
"kind": "script_version",
"severity": "low",
"category": "client_html",
"title": "jQuery version below organizational policy (< 3.7.0)",
"summary": "Custom policy requires jQuery >= 3.7.0.",
"remediation": "Upgrade jQuery to 3.7.1+.",
"standard_ref": "Custom Policy / ASVS V14.2.1",
"library": "jquery",
"below_version": "3.7.0"
}
]
}