[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7564TYD67BPCC36BV56AVF3":3,"skill-same:01M7564TYD67BPCC36BV56AVF3":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":50},"01M7564TYD67BPCC36BV56AVF3","x-evaluate-runtime",null,"Evaluate runtime protection controls: rate limiting, WAF rules, bot protection, DDoS mitigation, account lockout, brute force protection, CSP enforcement, and permissions policy. Produce SARIF 2.1.0 output with ASVS compliance mapping and scored Markdown report.","review-bench\u002Federcnj_ia-dev-environment","review-bench","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F286778065?v=4","01M7517F9NTEPDZDAXJBR30FWT","ReviewBench","01M7517FAC9F4P7TGWCNJ8VYVW",0,"MIT","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002F.claude\u002Fskills\u002Fx-evaluate-runtime\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: x-evaluate-runtime\ndescription: \"Evaluate runtime protection controls: rate limiting, WAF rules, bot protection, DDoS mitigation, account lockout, brute force protection, CSP enforcement, and permissions policy. Produce SARIF 2.1.0 output with ASVS compliance mapping and scored Markdown report.\"\nuser-invocable: true\nallowed-tools: Read, Write, Bash, Glob, Grep\nargument-hint: \"--target \u003Curl> [--scope all|rate-limit|waf|bot-protection|account-lockout|brute-force|csp|permissions] [--intensity passive|moderate|aggressive] [--login-endpoint \u002Fpath]\"\ncontext-budget: medium\nrequires-capabilities: []\n---\n\n## Global Output Policy\n\n- **Language**: English ONLY.\n- **Tone**: Technical, Direct, and Concise.\n- **Efficiency**: Remove all conversational fillers and greetings to save tokens.\n\n# Skill: Runtime Protection Eval\n\n## Purpose\n\nEvaluate runtime protection controls for {{PROJECT_NAME}} by analyzing active defense mechanisms including rate limiting, WAF rules, bot protection, account lockout, brute force mitigation, CSP enforcement, and permissions policy. Produce SARIF 2.1.0 output with ASVS compliance mapping and a scored Markdown report.\n\n## Triggers\n\n- `\u002Fx-evaluate-runtime --target https:\u002F\u002Fapp.example.com` — evaluate all dimensions\n- `\u002Fx-evaluate-runtime --target https:\u002F\u002Fapp.example.com --scope rate-limit` — rate limiting only\n- `\u002Fx-evaluate-runtime --target https:\u002F\u002Fapp.example.com --scope waf` — WAF rules only\n- `\u002Fx-evaluate-runtime --target https:\u002F\u002Fapp.example.com --scope account-lockout --login-endpoint \u002Fapi\u002Fauth\u002Flogin` — account lockout\n- `\u002Fx-evaluate-runtime --target https:\u002F\u002Fapp.example.com --intensity passive` — observe headers only\n- `\u002Fx-evaluate-runtime --target https:\u002F\u002Fapp.example.com --intensity aggressive` — full volume testing (local\u002Fdev only)\n\n## Parameters\n\n| Parameter | Type | Required | Default | Validation | Example |\n|-----------|------|----------|---------|------------|---------|\n| `--target` | URL | Yes | — | Valid HTTP\u002FHTTPS URL | `https:\u002F\u002Fapp.example.com` |\n| `--scope` | Enum | No | `all` | `all`, `rate-limit`, `waf`, `bot-protection`, `account-lockout`, `brute-force`, `csp`, `permissions` | `rate-limit` |\n| `--intensity` | Enum | No | `moderate` | `passive`, `moderate`, `aggressive` | `passive` |\n| `--login-endpoint` | Path | No | — | Relative path starting with `\u002F` | `\u002Fapi\u002Fauth\u002Flogin` |\n\n## Workflow\n\n### Step 1 — Validate Parameters\n\nValidate all inputs before execution:\n\n- `--target` must be a valid HTTP or HTTPS URL\n- `--target` must be reachable (TCP connection within 10s timeout)\n- If target is unreachable, emit error `\"Target unreachable: {url}\"` and abort\n- `--scope` must match one of the 8 valid values\n- `--login-endpoint` is required when `--scope=account-lockout`\n\n### Step 2 — Configure Intensity\n\nResolve effective intensity:\n\n1. If `--intensity=aggressive` and environment is production:\n   - Log warning: `\"Aggressive intensity not allowed in production\"`\n   - Downgrade to `passive`\n2. Record effective intensity in report metadata\n\n**Intensity levels:**\n\n| Level | Behavior | Allowed Environments |\n|-------|----------|---------------------|\n| **passive** | Observe headers and configurations only; no payloads sent | All environments |\n| **moderate** | Send non-destructive test payloads (default) | All environments |\n| **aggressive** | Test limits with higher volume of requests | Local and dev only |\n\n### Step 3 — Discover Baseline\n\nProbe the target to establish baseline:\n\n- Send a single GET request to `--target`\n- Record response headers for later comparison\n- Extract security-relevant headers: `X-RateLimit-*`, `Content-Security-Policy`, `Permissions-Policy`, `X-Content-Type-Options`, `Strict-Transport-Security`\n- Record server identification if exposed\n\n### Step 4 — Evaluate Dimensions\n\nExecute checks for each dimension in scope. Each dimension produces a `RuntimeProtectionResult`.\n\n#### 4.1 — Rate Limiting\n\n**ASVS Reference:** V4.3 (Access Control)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| `X-RateLimit-*` headers present | Yes | Yes | Yes |\n| `Retry-After` header on 429 | No | Yes | Yes |\n| Global rate limit triggers 429 | No | Yes | Yes |\n| Per-endpoint rate limit | No | Yes | Yes |\n| Per-user rate limit | No | No | Yes |\n| Burst handling | No | No | Yes |\n\n**Moderate test procedure:**\n1. Send burst of 100 requests to target root endpoint within 10 seconds\n2. Count responses with status 429\n3. Validate `Retry-After` header is present on 429 responses\n4. Check for `X-RateLimit-Remaining` and `X-RateLimit-Limit` headers\n\n**Result fields:**\n\n| Field | Type | Description |\n|-------|------|-------------|\n| endpoint | String | Tested endpoint path |\n| requestsSent | int | Total requests sent |\n| requestsBlocked | int | Responses with 429 status |\n| statusCode | int | Expected blocking status (429) |\n| retryAfterPresent | boolean | Whether Retry-After header was found |\n| rateLimitHeaders | Map | Rate limit headers observed |\n\n#### 4.2 — WAF Rules (OWASP CRS)\n\n**ASVS Reference:** V5.1 (Input Validation)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| Security headers indicating WAF | Yes | Yes | Yes |\n| SQL injection blocking | No | Yes | Yes |\n| XSS payload blocking | No | Yes | Yes |\n| Path traversal blocking | No | Yes | Yes |\n| Custom WAF rules | No | No | Yes |\n\n**Non-destructive test payloads (moderate):**\n\n```\nSQL Injection:  GET \u002Fsearch?q=' OR '1'='1\nXSS:            GET \u002Fsearch?q=\u003Cscript>alert(1)\u003C\u002Fscript>\nPath Traversal: GET \u002Ffiles\u002F..\u002F..\u002F..\u002Fetc\u002Fpasswd\nCommand Inject: GET \u002Fping?host=;cat \u002Fetc\u002Fpasswd\n```\n\nThese payloads probe for WAF blocking behavior (expecting 403 or custom block page) without causing harm.\n\n**Status:** `PROTECTED` if all payloads return 403\u002Fblocking response; `PARTIAL` if some blocked; `UNPROTECTED` if none blocked; `SKIPPED` in passive mode.\n\n#### 4.3 — Bot Protection\n\n**ASVS Reference:** V13.1 (API and Web Service)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| CAPTCHA presence in HTML | Yes | Yes | Yes |\n| Bot detection headers | Yes | Yes | Yes |\n| Automated request blocking | No | Yes | Yes |\n| Challenge page detection | No | Yes | Yes |\n\n**Checks:**\n- Scan HTML responses for CAPTCHA markers (reCAPTCHA, hCaptcha, Turnstile)\n- Check for bot-detection response headers\n- Send requests with missing\u002Finvalid User-Agent\n- Detect challenge\u002Finterstitial pages\n\n#### 4.4 — Account Lockout\n\n**ASVS Reference:** V2.2 (Authentication)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| Login endpoint responds | Yes | Yes | Yes |\n| Lockout after max attempts | No | Yes | Yes |\n| Lockout duration enforced | No | Yes | Yes |\n| Progressive delay detection | No | No | Yes |\n| Lockout notification | No | No | Yes |\n| Reset mechanism available | No | No | Yes |\n\n**Requires:** `--login-endpoint` parameter.\n\n**Moderate test procedure:**\n1. Send 10 login attempts with invalid credentials to `--login-endpoint`\n2. Check for 423 (Locked) or 429 (Too Many Requests) response\n3. Validate lockout message in response body\n4. Record number of attempts before lockout\n\n**Finding on absence:** If no lockout is detected after 10 failed attempts, generate a `CRITICAL` finding with fix recommendation including max attempts and lockout duration configuration.\n\n#### 4.5 — Brute Force Protection\n\n**ASVS Reference:** V2.2 (Authentication), V11.1 (Business Logic)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| Rate limiting on auth endpoints | Yes | Yes | Yes |\n| Progressive delay observed | No | Yes | Yes |\n| API key enumeration protection | No | Yes | Yes |\n| Timing attack mitigation | No | Yes | Yes |\n\n**Checks:**\n- Verify rate limiting on authentication endpoints (separate from global rate limit)\n- Measure response time variance for valid vs. invalid credentials (timing attack mitigation expects constant time)\n- Send sequential requests with incrementing API key patterns to detect enumeration protection\n\n#### 4.6 — CSP Enforcement\n\n**ASVS Reference:** V14.4 (Configuration)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| `Content-Security-Policy` header present | Yes | Yes | Yes |\n| CSP directives completeness | Yes | Yes | Yes |\n| `report-uri` or `report-to` configured | Yes | Yes | Yes |\n| `unsafe-inline` absent | Yes | Yes | Yes |\n| `unsafe-eval` absent | Yes | Yes | Yes |\n\n**CSP directives to validate:**\n\n| Directive | Expected | Severity if Missing |\n|-----------|----------|-------------------|\n| `default-src` | Present and restrictive | HIGH |\n| `script-src` | No `unsafe-inline` or `unsafe-eval` | CRITICAL |\n| `style-src` | Defined | MEDIUM |\n| `img-src` | Defined | LOW |\n| `connect-src` | Defined | MEDIUM |\n| `frame-ancestors` | `'none'` or specific origins | HIGH |\n| `report-uri` \u002F `report-to` | Present | MEDIUM |\n\n#### 4.7 — Permissions Policy\n\n**ASVS Reference:** V14.4 (Configuration)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| `Permissions-Policy` header present | Yes | Yes | Yes |\n| Feature restrictions defined | Yes | Yes | Yes |\n| Geolocation restricted | Yes | Yes | Yes |\n| Camera\u002Fmicrophone restricted | Yes | Yes | Yes |\n| Payment API restricted | Yes | Yes | Yes |\n\n**Features to validate:**\n\n| Feature | Expected | Severity if Unrestricted |\n|---------|----------|------------------------|\n| `geolocation` | `()` (disabled) or specific origins | MEDIUM |\n| `camera` | `()` (disabled) | HIGH |\n| `microphone` | `()` (disabled) | HIGH |\n| `payment` | `()` (disabled) or specific origins | HIGH |\n| `usb` | `()` (disabled) | MEDIUM |\n| `autoplay` | Restricted | LOW |\n\n### Step 5 — Score Results\n\n#### 5.1 — Per-Dimension Scoring\n\nFor each dimension, calculate:\n\n```\ndimensionScore = (passedChecks \u002F totalChecks) * 100\n```\n\n**Status assignment:**\n\n| Score Range | Status |\n|-------------|--------|\n| 80-100 | PROTECTED |\n| 40-79 | PARTIAL |\n| 0-39 | UNPROTECTED |\n| N\u002FA | SKIPPED |\n\n#### 5.2 — Overall Scoring\n\n```\noverallScore = max(0, 100 - sum(severityWeight * findingCount))\n```\n\n**Severity weights:** CRITICAL=10, HIGH=5, MEDIUM=2, LOW=1, INFO=0\n\n**Grade assignment:**\n\n| Score | Grade |\n|-------|-------|\n| 90-100 | A |\n| 80-89 | B |\n| 70-79 | C |\n| 60-69 | D |\n| 0-59 | F |\n\n### Step 6 — Generate Reports\n\nGenerate two output files:\n\n#### 6.1 — SARIF 2.1.0 Output\n\nWrite to `results\u002Fsecurity\u002Fruntime-protection-{timestamp}.sarif.json`:\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fraw.githubusercontent.com\u002Foasis-tcs\u002Fsarif-spec\u002Fmain\u002Fsarif-2.1\u002Fschema\u002Fsarif-schema-2.1.0.json\",\n  \"version\": \"2.1.0\",\n  \"runs\": [{\n    \"tool\": {\n      \"driver\": {\n        \"name\": \"x-evaluate-runtime\",\n        \"version\": \"1.0.0\",\n        \"informationUri\": \"https:\u002F\u002Fowasp.org\u002Fwww-project-application-security-verification-standard\u002F\",\n        \"rules\": [\n          {\n            \"id\": \"RTPROT-001\",\n            \"shortDescription\": { \"text\": \"Rate limit not configured\" },\n            \"helpUri\": \"https:\u002F\u002Fcheatsheetseries.owasp.org\u002Fcheatsheets\u002FDenial_of_Service_Cheat_Sheet.html\",\n            \"properties\": { \"asvs-ref\": \"V4.3\", \"dimension\": \"rate-limit\" }\n          }\n        ]\n      }\n    },\n    \"results\": [\n      {\n        \"ruleId\": \"RTPROT-001\",\n        \"level\": \"error\",\n        \"message\": { \"text\": \"No rate limiting detected on endpoint \u002Fapi\u002Fusers\" },\n        \"locations\": [{ \"physicalLocation\": { \"artifactLocation\": { \"uri\": \"https:\u002F\u002Fapp.example.com\u002Fapi\u002Fusers\" } } }],\n        \"properties\": {\n          \"dimension\": \"rate-limit\",\n          \"asvs-ref\": \"V4.3\",\n          \"severity\": \"CRITICAL\",\n          \"fix-recommendation\": \"Configure rate limiting (e.g., 100 req\u002Fmin per IP) with 429 response and Retry-After header\"\n        }\n      }\n    ]\n  }]\n}\n```\n\n#### 6.2 — Markdown Report\n\nWrite to `results\u002Fsecurity\u002Fruntime-protection-{timestamp}-report.md`:\n\n```markdown\n# Runtime Protection Report — {{PROJECT_NAME}}\n\n**Date:** YYYY-MM-DD\n**Target:** {target_url}\n**Scope:** {scope}\n**Intensity:** {effective_intensity}\n\n## Overall Score: {score}\u002F100 (Grade {grade})\n\n## Dimension Summary\n\n| Dimension | Status | Score | Checks | Passed | ASVS Ref |\n|-----------|--------|-------|--------|--------|----------|\n| Rate Limiting | PROTECTED | 90 | 6 | 5 | V4.3 |\n| WAF Rules | PARTIAL | 60 | 5 | 3 | V5.1 |\n| Bot Protection | UNPROTECTED | 20 | 4 | 1 | V13.1 |\n| Account Lockout | SKIPPED | — | — | — | V2.2 |\n| Brute Force | PROTECTED | 85 | 4 | 3 | V2.2, V11.1 |\n| CSP Enforcement | PARTIAL | 70 | 5 | 3 | V14.4 |\n| Permissions Policy | PROTECTED | 100 | 5 | 5 | V14.4 |\n\n## Critical Gaps\n\n- {dimension}: {description of gap and remediation}\n\n## Detailed Findings\n\n### [RTPROT-001] {Dimension} — {Finding Title}\n- **Severity:** CRITICAL\n- **ASVS Reference:** V4.3\n- **Description:** {detailed description}\n- **Evidence:** {observed behavior}\n- **Fix Recommendation:** {actionable fix steps}\n\n## Recommendations\n\n1. **Immediate:** Address CRITICAL findings ({count})\n2. **Short-term:** Resolve HIGH findings ({count})\n3. **Long-term:** Review MEDIUM\u002FLOW findings ({count})\n```\n\n## ASVS Mapping Summary\n\n| Dimension | ASVS Chapter | ASVS Section | Key Requirements |\n|-----------|-------------|--------------|-----------------|\n| Rate Limiting | V4 Access Control | V4.3 | Rate limiting, resource protection |\n| WAF Rules | V5 Validation | V5.1 | Input validation, injection prevention |\n| Bot Protection | V13 API Security | V13.1 | API security mechanisms |\n| Account Lockout | V2 Authentication | V2.2 | Credential protection, lockout |\n| Brute Force | V2 Authentication, V11 Business Logic | V2.2, V11.1 | Brute force mitigation |\n| CSP Enforcement | V14 Configuration | V14.4 | HTTP security headers |\n| Permissions Policy | V14 Configuration | V14.4 | Feature policy headers |\n\n## Error Handling\n\n| Scenario | Action |\n|----------|--------|\n| Target unreachable | Emit `\"Target unreachable: {url}\"`, abort with no score |\n| Connection timeout | Retry once with doubled timeout, then report error |\n| Target returns 5xx | Report as finding (server error under load) |\n| Login endpoint not provided for account-lockout scope | Warn and skip account-lockout dimension |\n| Aggressive in production | Downgrade to passive, emit warning |\n| Partial dimension failure | Complete other dimensions, mark failed as SKIPPED |\n| SSL certificate error | Warn and continue with `--insecure` flag |\n\n## Integration Notes\n\n| Skill | Relationship | Context |\n|-------|-------------|---------|\n| x-generate-security-dashboard | called-by | Dashboard aggregates runtime protection results |\n| x-evaluate-hardening | complements | Hardening evaluates static config; runtime evaluates live behavior |\n| x-run-dast | complements | DAST tests vulnerabilities; runtime tests defensive controls |\n\n## Knowledge Pack References\n\n| Knowledge Pack | Usage |\n|----------------|-------|\n| security | OWASP ASVS compliance mapping, remediation recommendations |\n","## Global Output Policy\n\n- **Language**: English ONLY.\n- **Tone**: Technical, Direct, and Concise.\n- **Efficiency**: Remove all conversational fillers and greetings to save tokens.\n\n# Skill: Runtime Protection Eval\n\n## Purpose\n\nEvaluate runtime protection controls for {{PROJECT_NAME}} by analyzing active defense mechanisms including rate limiting, WAF rules, bot protection, account lockout, brute force mitigation, CSP enforcement, and permissions policy. Produce SARIF 2.1.0 output with ASVS compliance mapping and a scored Markdown report.\n\n## Triggers\n\n- `\u002Fx-evaluate-runtime --target https:\u002F\u002Fapp.example.com` — evaluate all dimensions\n- `\u002Fx-evaluate-runtime --target https:\u002F\u002Fapp.example.com --scope rate-limit` — rate limiting only\n- `\u002Fx-evaluate-runtime --target https:\u002F\u002Fapp.example.com --scope waf` — WAF rules only\n- `\u002Fx-evaluate-runtime --target https:\u002F\u002Fapp.example.com --scope account-lockout --login-endpoint \u002Fapi\u002Fauth\u002Flogin` — account lockout\n- `\u002Fx-evaluate-runtime --target https:\u002F\u002Fapp.example.com --intensity passive` — observe headers only\n- `\u002Fx-evaluate-runtime --target https:\u002F\u002Fapp.example.com --intensity aggressive` — full volume testing (local\u002Fdev only)\n\n## Parameters\n\n| Parameter | Type | Required | Default | Validation | Example |\n|-----------|------|----------|---------|------------|---------|\n| `--target` | URL | Yes | — | Valid HTTP\u002FHTTPS URL | `https:\u002F\u002Fapp.example.com` |\n| `--scope` | Enum | No | `all` | `all`, `rate-limit`, `waf`, `bot-protection`, `account-lockout`, `brute-force`, `csp`, `permissions` | `rate-limit` |\n| `--intensity` | Enum | No | `moderate` | `passive`, `moderate`, `aggressive` | `passive` |\n| `--login-endpoint` | Path | No | — | Relative path starting with `\u002F` | `\u002Fapi\u002Fauth\u002Flogin` |\n\n## Workflow\n\n### Step 1 — Validate Parameters\n\nValidate all inputs before execution:\n\n- `--target` must be a valid HTTP or HTTPS URL\n- `--target` must be reachable (TCP connection within 10s timeout)\n- If target is unreachable, emit error `\"Target unreachable: {url}\"` and abort\n- `--scope` must match one of the 8 valid values\n- `--login-endpoint` is required when `--scope=account-lockout`\n\n### Step 2 — Configure Intensity\n\nResolve effective intensity:\n\n1. If `--intensity=aggressive` and environment is production:\n   - Log warning: `\"Aggressive intensity not allowed in production\"`\n   - Downgrade to `passive`\n2. Record effective intensity in report metadata\n\n**Intensity levels:**\n\n| Level | Behavior | Allowed Environments |\n|-------|----------|---------------------|\n| **passive** | Observe headers and configurations only; no payloads sent | All environments |\n| **moderate** | Send non-destructive test payloads (default) | All environments |\n| **aggressive** | Test limits with higher volume of requests | Local and dev only |\n\n### Step 3 — Discover Baseline\n\nProbe the target to establish baseline:\n\n- Send a single GET request to `--target`\n- Record response headers for later comparison\n- Extract security-relevant headers: `X-RateLimit-*`, `Content-Security-Policy`, `Permissions-Policy`, `X-Content-Type-Options`, `Strict-Transport-Security`\n- Record server identification if exposed\n\n### Step 4 — Evaluate Dimensions\n\nExecute checks for each dimension in scope. Each dimension produces a `RuntimeProtectionResult`.\n\n#### 4.1 — Rate Limiting\n\n**ASVS Reference:** V4.3 (Access Control)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| `X-RateLimit-*` headers present | Yes | Yes | Yes |\n| `Retry-After` header on 429 | No | Yes | Yes |\n| Global rate limit triggers 429 | No | Yes | Yes |\n| Per-endpoint rate limit | No | Yes | Yes |\n| Per-user rate limit | No | No | Yes |\n| Burst handling | No | No | Yes |\n\n**Moderate test procedure:**\n1. Send burst of 100 requests to target root endpoint within 10 seconds\n2. Count responses with status 429\n3. Validate `Retry-After` header is present on 429 responses\n4. Check for `X-RateLimit-Remaining` and `X-RateLimit-Limit` headers\n\n**Result fields:**\n\n| Field | Type | Description |\n|-------|------|-------------|\n| endpoint | String | Tested endpoint path |\n| requestsSent | int | Total requests sent |\n| requestsBlocked | int | Responses with 429 status |\n| statusCode | int | Expected blocking status (429) |\n| retryAfterPresent | boolean | Whether Retry-After header was found |\n| rateLimitHeaders | Map | Rate limit headers observed |\n\n#### 4.2 — WAF Rules (OWASP CRS)\n\n**ASVS Reference:** V5.1 (Input Validation)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| Security headers indicating WAF | Yes | Yes | Yes |\n| SQL injection blocking | No | Yes | Yes |\n| XSS payload blocking | No | Yes | Yes |\n| Path traversal blocking | No | Yes | Yes |\n| Custom WAF rules | No | No | Yes |\n\n**Non-destructive test payloads (moderate):**\n\n```\nSQL Injection:  GET \u002Fsearch?q=' OR '1'='1\nXSS:            GET \u002Fsearch?q=\u003Cscript>alert(1)\u003C\u002Fscript>\nPath Traversal: GET \u002Ffiles\u002F..\u002F..\u002F..\u002Fetc\u002Fpasswd\nCommand Inject: GET \u002Fping?host=;cat \u002Fetc\u002Fpasswd\n```\n\nThese payloads probe for WAF blocking behavior (expecting 403 or custom block page) without causing harm.\n\n**Status:** `PROTECTED` if all payloads return 403\u002Fblocking response; `PARTIAL` if some blocked; `UNPROTECTED` if none blocked; `SKIPPED` in passive mode.\n\n#### 4.3 — Bot Protection\n\n**ASVS Reference:** V13.1 (API and Web Service)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| CAPTCHA presence in HTML | Yes | Yes | Yes |\n| Bot detection headers | Yes | Yes | Yes |\n| Automated request blocking | No | Yes | Yes |\n| Challenge page detection | No | Yes | Yes |\n\n**Checks:**\n- Scan HTML responses for CAPTCHA markers (reCAPTCHA, hCaptcha, Turnstile)\n- Check for bot-detection response headers\n- Send requests with missing\u002Finvalid User-Agent\n- Detect challenge\u002Finterstitial pages\n\n#### 4.4 — Account Lockout\n\n**ASVS Reference:** V2.2 (Authentication)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| Login endpoint responds | Yes | Yes | Yes |\n| Lockout after max attempts | No | Yes | Yes |\n| Lockout duration enforced | No | Yes | Yes |\n| Progressive delay detection | No | No | Yes |\n| Lockout notification | No | No | Yes |\n| Reset mechanism available | No | No | Yes |\n\n**Requires:** `--login-endpoint` parameter.\n\n**Moderate test procedure:**\n1. Send 10 login attempts with invalid credentials to `--login-endpoint`\n2. Check for 423 (Locked) or 429 (Too Many Requests) response\n3. Validate lockout message in response body\n4. Record number of attempts before lockout\n\n**Finding on absence:** If no lockout is detected after 10 failed attempts, generate a `CRITICAL` finding with fix recommendation including max attempts and lockout duration configuration.\n\n#### 4.5 — Brute Force Protection\n\n**ASVS Reference:** V2.2 (Authentication), V11.1 (Business Logic)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| Rate limiting on auth endpoints | Yes | Yes | Yes |\n| Progressive delay observed | No | Yes | Yes |\n| API key enumeration protection | No | Yes | Yes |\n| Timing attack mitigation | No | Yes | Yes |\n\n**Checks:**\n- Verify rate limiting on authentication endpoints (separate from global rate limit)\n- Measure response time variance for valid vs. invalid credentials (timing attack mitigation expects constant time)\n- Send sequential requests with incrementing API key patterns to detect enumeration protection\n\n#### 4.6 — CSP Enforcement\n\n**ASVS Reference:** V14.4 (Configuration)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| `Content-Security-Policy` header present | Yes | Yes | Yes |\n| CSP directives completeness | Yes | Yes | Yes |\n| `report-uri` or `report-to` configured | Yes | Yes | Yes |\n| `unsafe-inline` absent | Yes | Yes | Yes |\n| `unsafe-eval` absent | Yes | Yes | Yes |\n\n**CSP directives to validate:**\n\n| Directive | Expected | Severity if Missing |\n|-----------|----------|-------------------|\n| `default-src` | Present and restrictive | HIGH |\n| `script-src` | No `unsafe-inline` or `unsafe-eval` | CRITICAL |\n| `style-src` | Defined | MEDIUM |\n| `img-src` | Defined | LOW |\n| `connect-src` | Defined | MEDIUM |\n| `frame-ancestors` | `'none'` or specific origins | HIGH |\n| `report-uri` \u002F `report-to` | Present | MEDIUM |\n\n#### 4.7 — Permissions Policy\n\n**ASVS Reference:** V14.4 (Configuration)\n\n| Check | Passive | Moderate | Aggressive |\n|-------|---------|----------|------------|\n| `Permissions-Policy` header present | Yes | Yes | Yes |\n| Feature restrictions defined | Yes | Yes | Yes |\n| Geolocation restricted | Yes | Yes | Yes |\n| Camera\u002Fmicrophone restricted | Yes | Yes | Yes |\n| Payment API restricted | Yes | Yes | Yes |\n\n**Features to validate:**\n\n| Feature | Expected | Severity if Unrestricted |\n|---------|----------|------------------------|\n| `geolocation` | `()` (disabled) or specific origins | MEDIUM |\n| `camera` | `()` (disabled) | HIGH |\n| `microphone` | `()` (disabled) | HIGH |\n| `payment` | `()` (disabled) or specific origins | HIGH |\n| `usb` | `()` (disabled) | MEDIUM |\n| `autoplay` | Restricted | LOW |\n\n### Step 5 — Score Results\n\n#### 5.1 — Per-Dimension Scoring\n\nFor each dimension, calculate:\n\n```\ndimensionScore = (passedChecks \u002F totalChecks) * 100\n```\n\n**Status assignment:**\n\n| Score Range | Status |\n|-------------|--------|\n| 80-100 | PROTECTED |\n| 40-79 | PARTIAL |\n| 0-39 | UNPROTECTED |\n| N\u002FA | SKIPPED |\n\n#### 5.2 — Overall Scoring\n\n```\noverallScore = max(0, 100 - sum(severityWeight * findingCount))\n```\n\n**Severity weights:** CRITICAL=10, HIGH=5, MEDIUM=2, LOW=1, INFO=0\n\n**Grade assignment:**\n\n| Score | Grade |\n|-------|-------|\n| 90-100 | A |\n| 80-89 | B |\n| 70-79 | C |\n| 60-69 | D |\n| 0-59 | F |\n\n### Step 6 — Generate Reports\n\nGenerate two output files:\n\n#### 6.1 — SARIF 2.1.0 Output\n\nWrite to `results\u002Fsecurity\u002Fruntime-protection-{timestamp}.sarif.json`:\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fraw.githubusercontent.com\u002Foasis-tcs\u002Fsarif-spec\u002Fmain\u002Fsarif-2.1\u002Fschema\u002Fsarif-schema-2.1.0.json\",\n  \"version\": \"2.1.0\",\n  \"runs\": [{\n    \"tool\": {\n      \"driver\": {\n        \"name\": \"x-evaluate-runtime\",\n        \"version\": \"1.0.0\",\n        \"informationUri\": \"https:\u002F\u002Fowasp.org\u002Fwww-project-application-security-verification-standard\u002F\",\n        \"rules\": [\n          {\n            \"id\": \"RTPROT-001\",\n            \"shortDescription\": { \"text\": \"Rate limit not configured\" },\n            \"helpUri\": \"https:\u002F\u002Fcheatsheetseries.owasp.org\u002Fcheatsheets\u002FDenial_of_Service_Cheat_Sheet.html\",\n            \"properties\": { \"asvs-ref\": \"V4.3\", \"dimension\": \"rate-limit\" }\n          }\n        ]\n      }\n    },\n    \"results\": [\n      {\n        \"ruleId\": \"RTPROT-001\",\n        \"level\": \"error\",\n        \"message\": { \"text\": \"No rate limiting detected on endpoint \u002Fapi\u002Fusers\" },\n        \"locations\": [{ \"physicalLocation\": { \"artifactLocation\": { \"uri\": \"https:\u002F\u002Fapp.example.com\u002Fapi\u002Fusers\" } } }],\n        \"properties\": {\n          \"dimension\": \"rate-limit\",\n          \"asvs-ref\": \"V4.3\",\n          \"severity\": \"CRITICAL\",\n          \"fix-recommendation\": \"Configure rate limiting (e.g., 100 req\u002Fmin per IP) with 429 response and Retry-After header\"\n        }\n      }\n    ]\n  }]\n}\n```\n\n#### 6.2 — Markdown Report\n\nWrite to `results\u002Fsecurity\u002Fruntime-protection-{timestamp}-report.md`:\n\n```markdown\n# Runtime Protection Report — {{PROJECT_NAME}}\n\n**Date:** YYYY-MM-DD\n**Target:** {target_url}\n**Scope:** {scope}\n**Intensity:** {effective_intensity}\n\n## Overall Score: {score}\u002F100 (Grade {grade})\n\n## Dimension Summary\n\n| Dimension | Status | Score | Checks | Passed | ASVS Ref |\n|-----------|--------|-------|--------|--------|----------|\n| Rate Limiting | PROTECTED | 90 | 6 | 5 | V4.3 |\n| WAF Rules | PARTIAL | 60 | 5 | 3 | V5.1 |\n| Bot Protection | UNPROTECTED | 20 | 4 | 1 | V13.1 |\n| Account Lockout | SKIPPED | — | — | — | V2.2 |\n| Brute Force | PROTECTED | 85 | 4 | 3 | V2.2, V11.1 |\n| CSP Enforcement | PARTIAL | 70 | 5 | 3 | V14.4 |\n| Permissions Policy | PROTECTED | 100 | 5 | 5 | V14.4 |\n\n## Critical Gaps\n\n- {dimension}: {description of gap and remediation}\n\n## Detailed Findings\n\n### [RTPROT-001] {Dimension} — {Finding Title}\n- **Severity:** CRITICAL\n- **ASVS Reference:** V4.3\n- **Description:** {detailed description}\n- **Evidence:** {observed behavior}\n- **Fix Recommendation:** {actionable fix steps}\n\n## Recommendations\n\n1. **Immediate:** Address CRITICAL findings ({count})\n2. **Short-term:** Resolve HIGH findings ({count})\n3. **Long-term:** Review MEDIUM\u002FLOW findings ({count})\n```\n\n## ASVS Mapping Summary\n\n| Dimension | ASVS Chapter | ASVS Section | Key Requirements |\n|-----------|-------------|--------------|-----------------|\n| Rate Limiting | V4 Access Control | V4.3 | Rate limiting, resource protection |\n| WAF Rules | V5 Validation | V5.1 | Input validation, injection prevention |\n| Bot Protection | V13 API Security | V13.1 | API security mechanisms |\n| Account Lockout | V2 Authentication | V2.2 | Credential protection, lockout |\n| Brute Force | V2 Authentication, V11 Business Logic | V2.2, V11.1 | Brute force mitigation |\n| CSP Enforcement | V14 Configuration | V14.4 | HTTP security headers |\n| Permissions Policy | V14 Configuration | V14.4 | Feature policy headers |\n\n## Error Handling\n\n| Scenario | Action |\n|----------|--------|\n| Target unreachable | Emit `\"Target unreachable: {url}\"`, abort with no score |\n| Connection timeout | Retry once with doubled timeout, then report error |\n| Target returns 5xx | Report as finding (server error under load) |\n| Login endpoint not provided for account-lockout scope | Warn and skip account-lockout dimension |\n| Aggressive in production | Downgrade to passive, emit warning |\n| Partial dimension failure | Complete other dimensions, mark failed as SKIPPED |\n| SSL certificate error | Warn and continue with `--insecure` flag |\n\n## Integration Notes\n\n| Skill | Relationship | Context |\n|-------|-------------|---------|\n| x-generate-security-dashboard | called-by | Dashboard aggregates runtime protection results |\n| x-evaluate-hardening | complements | Hardening evaluates static config; runtime evaluates live behavior |\n| x-run-dast | complements | DAST tests vulnerabilities; runtime tests defensive controls |\n\n## Knowledge Pack References\n\n| Knowledge Pack | Usage |\n|----------------|-------|\n| security | OWASP ASVS compliance mapping, remediation recommendations |\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25,"context-budget":26,"user-invocable":27,"requires-capabilities":28},"Read, Write, Bash, Glob, Grep","--target \u003Curl> [--scope all|rate-limit|waf|bot-protection|account-lockout|brute-force|csp|permissions] [--intensity passive|moderate|aggressive] [--login-endpoint \u002Fpath]","medium",true,[],"main","952a630c6f38d193a349d86fa18db1de8843e837","src\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002F.claude\u002Fskills\u002Fx-evaluate-runtime",1,"https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment","https:\u002F\u002Fgithub.com\u002Freview-bench","https:\u002F\u002Freview-bench.ai","An open benchmark for AI code review.","2026-10-27 06:56:37",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":27},[40,43,46],{"tool":41,"command":42},"npx","npx skills add review-bench\u002Federcnj_ia-dev-environment --skill x-evaluate-runtime",{"tool":44,"command":45},"bunx","bunx skills add review-bench\u002Federcnj_ia-dev-environment --skill x-evaluate-runtime",{"tool":47,"command":48},"pnpm","pnpm dlx skills add review-bench\u002Federcnj_ia-dev-environment --skill x-evaluate-runtime","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002F.claude\u002Fskills\u002Fx-evaluate-runtime\u002FSKILL.md",[51],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"README.md","REFERENCE","参考文档",2288,"https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002F.claude\u002Fskills\u002Fx-evaluate-runtime\u002FREADME.md",[58,65,72,79,86,93],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M757M8J48TQ1Y3X25GSJBXAS","x-parallel-eval","Detects and classifies file-collision risks between work units (tasks, stories, or epic phases) before parallel execution. Reads ## File Footprint blocks produced by x-task-plan \u002F x-story-plan, applies the parallelism-heuristics knowledge pack (hard \u002F regen \u002F soft categories + hotspot overrides), and emits a collision matrix + serialization recommendation in Markdown (default) or JSON.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fx-parallel-eval\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M757M57XMR9546S69466HDWT","parallelism-heuristics","Canonical catalog of file-collision heuristics for parallel task, story, and epic execution. Defines the File Footprint block format, the three Conflict Categories (hard \u002F regen \u002F soft), a hotspot list of high-contention paths, and the degrade-with-warning policy. Consumed by x-task-plan, x-story-plan, x-epic-map, x-parallel-eval, and x-dev-*-implement.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fparallelism-heuristics\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M757M11SZ8P1VCQABT08QVYA","x-watch-pr-ci","Polls a PR's CI checks and Copilot review status, blocking until checks complete or timeout. Returns one of 8 stable exit codes (SUCCESS=0, CI_PENDING_PROCEED=10, CI_FAILED=20, TIMEOUT=30, PR_ALREADY_MERGED=40, NO_CI_CONFIGURED=50, PR_CLOSED=60, PR_NOT_FOUND=70). Writes a versioned state-file for session resume.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-watch-pr-ci\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M757KW53K8KFPGADFB4PH949","x-validate-docs","Documentation freshness gate: validates 6 dimensions (readme, api-specs, grpc-proto, adr, skill-docs, system-architecture) against code changes in a PR. Stack-aware — only validates targets declared\u002Fauto-detected from ProjectConfig.documentation.targets. Returns exit non-zero on staleness; produces structured report.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-validate-docs\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M757KQZHSA10MKC0CR571D60","x-update-system-architecture","Incrementally updates docs\u002Farchitecture\u002Fsystem.md after an epic completes. Appends new entries to the Decision Log (§11) using x-internal-write-report --append (dedup by ## ID: marker) and surgically inserts component\u002Fintegration changes into sections 1-10 via Edit. Idempotent: re-running with the same epic produces a byte-identical system.md.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-update-system-architecture\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M757KKBT5Q1SVF8DMJBVF46M","x-update-architecture","Incrementally updates the service architecture document with changes from architecture plans. Adds new components, integrations, flows, and ADR references without rewriting existing content. Use after implementation to keep architecture documentation current.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-update-architecture\u002FSKILL.md",[],[]]