Files
codex-security/examples/security-workflow-sample/qa/expected-findings.json
Neha RungtaandNeha Rungta 462bad3da3 feat(examples): add synthetic security workflow benchmarks (#2618)
* feat(examples): add synthetic security workflow benchmark

* feat(examples): add deployed VPC reachability benchmark

---------

Co-authored-by: Neha Rungta <rungta@amazon.com>
2026-11-12 21:49:33 -08:00

53 lines
1.9 KiB
JSON

{
"schemaVersion": 1,
"application": "../app",
"findings": [
{
"id": "SW-001",
"category": "Broken object authorization",
"cwe": ["CWE-639"],
"title": "Order lookup omits customer ownership",
"locations": [
{"path": "data.py", "symbol": "lookup_order"},
{"path": "server.py", "symbol": "route_request"}
],
"boundary": "An authenticated customer reads another customer's order by ID.",
"expectedEvidence": "The unscoped lookup returns both beacon and cedar orders to acme.",
"expectedFix": "Enforce tenant ownership in the lookup while preserving same-tenant reads.",
"disposition": "developer_review"
},
{
"id": "SW-002",
"category": "SQL injection",
"cwe": ["CWE-89"],
"title": "Reporting query interpolates the region parameter",
"locations": [
{"path": "reports.py", "symbol": "orders_by_region"},
{"path": "server.py", "symbol": "route_request"}
],
"boundary": "A signed-in customer changes the report predicate and sees another customer's rows.",
"expectedEvidence": "A synthetic region value returns rows outside the caller's tenant.",
"expectedFix": "Bind tenant and region as query parameters while retaining ordinary region filtering.",
"disposition": "policy_gated_merge"
}
],
"environmentCheck": {
"id": "SW-003",
"expectedCoverage": [
"order-report-api",
"billing-api",
"analytics-worker"
],
"expectedReachability": {
"order-report-api": "public_authenticated",
"billing-api": "private",
"analytics-worker": "no_http_route"
},
"expectedFindingIds": ["SW-001", "SW-002"],
"negativeControls": [
"No unsubstantiated finding for the scoped billing balance function.",
"Do not describe analytics legacy_region_export as reachable."
]
}
}