Fetch Compliance Details of Code Repository Scan
Input ParametersInput Parameters
| Parameter | Mandatory/Optional | Data Type | Description |
|---|---|---|---|
| codeId | Mandatory | string | Specify the CodeId value of an Code. |
| showOldCriticality | Optional | boolean | If true, return old criticality values; if false, return new criticality values. |
Sample: Fetch Compliance Details of Code Repository Scan Sample: Fetch Compliance Details of Code Repository Scan
API Request
curl -X 'GET' \
'<qualys_base_url>/csapi/v1.3/code/fdeaa6a0810a419cab06ae9e262353a4b8c0c3edfb532abbb72ea58951c4bed4/compliance?showOldCriticality=false' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>'
API Response
{
"uuid": "c7b0xx8d-ddda-32cf-9a2e-86axxxx8d9",
"sha": null,
"customerUuid": "ea3xx3f3-3f77-7b40-8383-572xxxd99",
"created": "1780400835720",
"updated": "1780658436946",
"controls": [
{
"controlId": 48067,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
}
],
"criticality": "CRITICAL",
"posture": "PASS",
"lastEvaluated": "1780658431385",
"statement": "Ensure no payment-card (PAN) literals appear in source code",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48088,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431384",
"statement": "Ensure public-facing endpoints are protected by a WAF",
"findings": null,
"remediation": "Deploy a WAF in front of payment-handling agent endpoints. Configure rules for common attack patterns.",
"evidence": []
},
{
"controlId": 48011,
"policies": [
{
"name": "NIST AI RMF 1.0",
"uuid": "80061ac3-a1dc-59aa-9e10-5019fb4e4d01"
},
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "PASS",
"lastEvaluated": "1780658431385",
"statement": "Ensure an explainability mechanism is present and surfaced",
"findings": null,
"remediation": null,
"evidence": []
},
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "HIGH",
"posture": "FAIL",
"lastEvaluated": "1780658431384",
"statement": "Ensure PII is redacted from tool responses before re-injection",
"findings": null,
"remediation": "Scan tool responses before re-injection into LLM context: Presidio or equivalent between tool.call() and agent context update.",
"evidence": []
},
{
"controlId": 48090,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431384",
"statement": "Ensure an incident response plan exists and is ready to activate",
"findings": null,
"remediation": "Create an incident response plan covering AI agent failures, data breaches, and cardholder data exposure scenarios.",
"evidence": []
},
{
"controlId": 48023,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "PASS",
"lastEvaluated": "1780658431385",
"statement": "Ensure agent system prompts are documented and reviewable",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48091,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431384",
"statement": "Ensure third-party service providers' compliance is monitored periodically",
"findings": null,
"remediation": "Maintain LLM provider inventory with compliance status. Verify annually.",
"evidence": []
},
{
"controlId": 48097,
"policies": [
{
"name": "NIST AI RMF 1.0",
"uuid": "80061ac3-a1dc-59aa-9e10-5019fb4e4d01"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431384",
"statement": "Ensure business context and third-party AI components are documented",
"findings": null,
"remediation": "Document the AI system's business value, intended outcomes, and third-party AI components used. Conduct vendor due diligence (SOC 2 / ISO 27001 / DPA) at adoption time.",
"evidence": []
},
{
"controlId": 48062,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
}
],
"criticality": "LOW",
"posture": "PASS",
"lastEvaluated": "1780658431385",
"statement": "Ensure prompts contain no payment-card-data keywords",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48037,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "LOW",
"posture": "FAIL",
"lastEvaluated": "1780658431384",
"statement": "Ensure AI interaction is disclosed in documentation",
"findings": null,
"remediation": "Include AI disclosure in README, user-facing documentation, or system prompt (e.g., 'I am an AI assistant').",
"evidence": []
},
{
"controlId": 48008,
"policies": [
{
"name": "NIST AI RMF 1.0",
"uuid": "80061ac3-a1dc-59aa-9e10-5019fb4e4d01"
},
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
},
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "HIGH",
"posture": "FAIL",
"lastEvaluated": "1780658431385",
"statement": "Ensure no packages are installed or imported dynamically at runtime",
"findings": null,
"remediation": "Pre-install all dependencies in the container image. Use lock files (uv.lock, poetry.lock) with hash verification. Forbid runtime installs in production.",
"evidence": [
{
"File": null,
"Line": 0,
"EndLine": 0,
"Label": null
}
]
},
{
"controlId": 48014,
"policies": [
{
"name": "NIST AI RMF 1.0",
"uuid": "80061ac3-a1dc-59aa-9e10-5019fb4e4d01"
},
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "PASS",
"lastEvaluated": "1780658431384",
"statement": "Ensure per-request input size is bounded",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48052,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "PASS",
"lastEvaluated": "1780658431385",
"statement": "Ensure model temperature is justified and bounded for the intended purpose",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48007,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
},
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "FAIL",
"lastEvaluated": "1780658431384",
"statement": "Ensure LLM output is escaped before HTML rendering",
"findings": null,
"remediation": "Escape all LLM output before HTML rendering. Use auto-escaping templates (Jinja autoescape, React default). Apply Content-Security-Policy headers.",
"evidence": [
{
"File": null,
"Line": 0,
"EndLine": 0,
"Label": null
}
]
},
{
"controlId": 48046,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "HIGH",
"posture": "PASS",
"lastEvaluated": "1780658431385",
"statement": "Ensure tool invocations are logged",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48074,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431384",
"statement": "Ensure synthetic content is marked as artificially generated (manual review)",
"findings": null,
"remediation": "Verify by inspecting deployed system output (C2PA, SynthID, content credentials, metadata tags). Document marking implementation in system spec.",
"evidence": []
},
{
"controlId": 48042,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
}
],
"criticality": "MEDIUM",
"posture": "FAIL",
"lastEvaluated": "1780658431385",
"statement": "Ensure per-agent credential scoping instead of a shared API key",
"findings": null,
"remediation": "Issue per-agent credentials: unique service account per agent role, scoped OAuth tokens, short-lived creds via STS. Document the credential-scope mapping per agent.",
"evidence": [
{
"File": null,
"Line": 0,
"EndLine": 0,
"Label": null
}
]
},
{
"controlId": 48049,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "HIGH",
"posture": "FAIL",
"lastEvaluated": "1780658431384",
"statement": "Ensure persistent agent memory redacts PII",
"findings": null,
"remediation": "Run Presidio or equivalent on all memory writes. Store references/tokens instead of raw PII. Support per-subject erasure.",
"evidence": []
},
{
"controlId": 48053,
{
"controlId": 48015,
"policies": [
{
"name": "NIST AI RMF 1.0",
"uuid": "80061ac3-a1dc-59aa-9e10-5019fb4e4d01"
},
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "HIGH",
"posture": "PASS",
"lastEvaluated": "1780658431384",
"statement": "Ensure a shutdown/interrupt mechanism is available",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48063,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
}
],
"criticality": "LOW",
"posture": "PASS",
"lastEvaluated": "1780658431385",
"statement": "Ensure prompts contain no sensitive-authentication-data (CVV/PIN/track) keywords",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48079,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431384",
"statement": "Ensure GPAI provider technical documentation is available",
"findings": null,
"remediation": "Ensure GPAI provider supplies model card, training data documentation, and copyright/TDM policy per Annex XI requirements.",
"evidence": []
},
{
"controlId": 48005,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
},
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "HIGH",
"posture": "FAIL",
"lastEvaluated": "1780658431384",
"statement": "Ensure file paths are validated and not derived from LLM output",
"findings": null,
"remediation": "Validate paths against an allowlist. Use os.path.realpath() and assert the canonical path remains within the expected base directory.",
"evidence": [
{
"File": null,
"Line": 0,
"EndLine": 0,
"Label": null
}
]
},
{
"controlId": 48083,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431384",
"statement": "Ensure all privileged/administrative actions are logged with attribution",
"findings": null,
"remediation": "Log every tool/function-call invocation with parameters, timestamp, agent identity, and outcome. Use callback handlers or framework tool hooks.",
"evidence": []
},
{
"controlId": 48031,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "FAIL",
"lastEvaluated": "1780658431385",
"statement": "Ensure Azure Content Safety analysis is applied",
"findings": null,
"remediation": "Wire ContentSafetyClient (azure-ai-contentsafety) into the input/output flow. Use the AnalyzeTextOptions with the four standard categories (Hate/Self-Harm/Sexual/Violence).",
"evidence": [
{
"File": null,
"Line": 0,
"EndLine": 0,
"Label": null
}
]
},
{
"controlId": 48087,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431384",
"statement": "Ensure code is reviewed via SAST or manual review before release",
"findings": null,
"remediation": "Integrate SAST tools (Semgrep, CodeQL, aiscanner) into CI/CD pipeline. Conduct code reviews for all changes to payment-handling code.",
"evidence": []
},
{
"controlId": 48051,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "PASS",
"lastEvaluated": "1780658431384",
"statement": "Ensure model internals (logprobs/embeddings/attention) are not exposed",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48006,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
},
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "HIGH",
"posture": "FAIL",
"lastEvaluated": "1780658431384",
"statement": "Ensure SQL is parameterized and never built from LLM output",
"findings": null,
"remediation": "Use parameterised queries (prepared statements). Never interpolate LLM output or untrusted strings into SQL.",
"evidence": [
{
"File": null,
"Line": 0,
"EndLine": 0,
"Label": null
}
]
},
{
"controlId": 48093,
"policies": [
{
"name": "NIST AI RMF 1.0",
"uuid": "80061ac3-a1dc-59aa-9e10-5019fb4e4d01"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431384",
"statement": "Ensure AI-specific incidents are tracked distinctly from generic incidents",
"findings": null,
"remediation": "Implement AI-specific incident tracking: log AI failures, near-misses, red-team findings. Feed back into risk register.",
"evidence": []
},
{
"controlId": 48045,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "HIGH",
"posture": "PASS",
"lastEvaluated": "1780658431385",
"statement": "Ensure a logging framework is configured",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48058,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
}
],
"criticality": "HIGH",
"posture": "PASS",
"lastEvaluated": "1780658431384",
"statement": "Ensure prompts contain no authentication-bypass instructions",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48070,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431385",
"statement": "Ensure the external systems the agent interacts with are documented",
"findings": null,
"remediation": "Document the external systems the AI system interacts with (MCP servers, APIs, data sources) per Annex IV §1(b).",
"evidence": []
},
{
"controlId": 48069,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431385",
"statement": "Ensure agent capabilities and human-oversight measures are documented",
"findings": null,
"remediation": "Document agent tool surface, capabilities, and the human-oversight measures in place per Article 14.",
"evidence": []
},
{
"controlId": 48099,
"policies": [
{
"name": "NIST AI RMF 1.0",
"uuid": "80061ac3-a1dc-59aa-9e10-5019fb4e4d01"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431385",
"statement": "Ensure third-party risks (vendors, models, MCP servers, vector DBs) are mapped",
"findings": null,
"remediation": "Maintain a register of third-party AI components (models, tools, MCP servers, vector DBs). Document risk per component and update on integration.",
"evidence": []
},
{
"controlId": 48092,
"policies": [
{
"name": "PCI DSS 4.0",
"uuid": "82b6906a-58b2-5158-ae52-390a98fd0467"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431385",
"statement": "Ensure payment-page tamper detection is in place",
"findings": null,
"remediation": "Implement Subresource Integrity (SRI) hashes and Content Security Policy (CSP) headers for all payment page scripts. Deploy change-detection monitoring on payment HTML and JavaScript assets. Alert on unauthorized modifications to payment page content.",
"evidence": []
},
{
"controlId": 48029,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "PASS",
"lastEvaluated": "1780658431384",
"statement": "Ensure Anthropic tools define an input_schema",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48003,
"policies": [
{
"name": "NIST AI RMF 1.0",
"uuid": "80061ac3-a1dc-59aa-9e10-5019fb4e4d01"
},
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "PASS",
"lastEvaluated": "1780658431385",
"statement": "Ensure centralized observability is configured",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48078,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "SKIPPED",
"lastEvaluated": "1780658431385",
"statement": "Ensure a post-market monitoring system is in place",
"findings": null,
"remediation": "Establish monitoring for deployed AI agents: error rates, user feedback, performance drift, and incident tracking.",
"evidence": []
},
{
"controlId": 48030,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "MEDIUM",
"posture": "FAIL",
"lastEvaluated": "1780658431384",
"statement": "Ensure Anthropic system instructions are isolated via the system parameter",
"findings": null,
"remediation": "Pass the system prompt via the dedicated system= parameter on messages.create; do not concatenate system instructions into the user message.",
"evidence": [
{
"File": null,
"Line": 0,
"EndLine": 0,
"Label": null
}
]
},
{
"controlId": 48020,
"policies": [
{
"name": "NIST AI RMF 1.0",
"uuid": "80061ac3-a1dc-59aa-9e10-5019fb4e4d01"
},
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "HIGH",
"posture": "FAIL",
"lastEvaluated": "1780658431384",
"statement": "Ensure adversarial/red-team testing is performed",
"findings": null,
"remediation": "Integrate adversarial testing: Garak (NVIDIA) for LLM attacks, Promptfoo in CI/CD, red-team exercises before releases.",
"evidence": []
},
{
"controlId": 48064,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "HIGH",
"posture": "PASS",
"lastEvaluated": "1780658431384",
"statement": "Ensure no container/sandbox escape vectors are present",
"findings": null,
"remediation": null,
"evidence": []
},
{
"controlId": 48068,
"policies": [
{
"name": "EU AI Act",
"uuid": "a7dfdb87-4580-5f04-803a-588d2f350bb8"
}
],
"criticality": "CRITICAL",
"posture": "PASS",
"lastEvaluated": "1780658431385",
"statement": "Ensure HuggingFace models are not loaded with trust_remote_code=True",
"findings": null,
"remediation": null,
"evidence": []
}
],
"lastComplianceScanned": "1780658431565"
}