Subscribe to the Non-Human & AI Identity Journal

Why do compliance frameworks accept AI pentesting in some cases but not others?

Because some frameworks are outcomes-based while others are prescriptive about the tester or engagement type. SOC 2 and ISO 27001 focus on effective control evidence, but PCI DSS and some regulated environments still require human or accredited testing for specific obligations.

Why This Matters for Security Teams

Compliance teams are not simply asking whether an AI system can be tested. They are asking whether the testing method produces evidence that maps to the framework’s intent, whether it can be defended in audit, and whether the tester’s independence, competence, and method are acceptable. That is why some frameworks tolerate AI-assisted testing as part of a broader assurance process, while others still expect a human-led assessment for specific obligations.

The practical issue is governance. Frameworks such as the NIST Cybersecurity Framework 2.0 and ISO 27001 are often implemented through control objectives and evidence quality, not a fixed list of approved tools. By contrast, PCI-style requirements and certain regulated environments can be more prescriptive about who performs the test and how it is documented. For AI pentesting, that difference determines whether the output is treated as meaningful assurance or as an interesting but non-compliant exercise.

Security teams also need to distinguish between a model safety evaluation, an application security test, and a compliance-grade penetration test. AI systems can be probed for prompt injection, data leakage, model inversion, and unsafe tool use, but not every weakness maps cleanly to a compliance control. In practice, many security teams encounter this gap only after the audit trail has already been questioned, rather than through intentional control design.

How It Works in Practice

In practice, organisations align AI pentesting to the control language of the framework, then decide whether the framework allows flexibility in method. Under outcome-based frameworks, the emphasis is usually on whether the test identifies realistic risk, whether findings are repeatable, and whether remediation is tracked. Under more prescriptive regimes, the evidence often needs to show who performed the test, what qualifications they had, and whether the scope matched the regulated requirement.

That means the same AI pentest can be acceptable in one context and insufficient in another. A model red team exercise may support risk management, but a compliance reviewer may still expect a separate human-led engagement for network, application, or payment-card obligations. The practical control question is whether the test is serving governance, detection, and remediation, or whether it is meant to satisfy a named requirement in a standard.

Common implementation checks include:

  • define the test objective, such as prompt injection, secrets exposure, or unsafe agent actions;
  • map the method to the control intent in NIST SP 800-53 Rev 5 Security and Privacy Controls or ISO 27001;
  • record the model version, prompts, tools, datasets, and environment used;
  • separate compliance evidence from exploratory security research;
  • retain human review for high-impact decisions and regulated workflows.

For AI systems, this is especially important when testing agentic behaviour, where a model may trigger tools, retrieve data, or create downstream actions. Good assurance records explain not just what was broken, but why the result is relevant to the control objective. These controls tend to break down when the organisation treats an AI red team report as a substitute for a formal control assessment in regulated payment or identity environments because the evidence requirements are not interchangeable.

Common Variations and Edge Cases

Tighter testing rules often increase cost and scheduling friction, requiring organisations to balance assurance depth against operational speed. That tradeoff becomes sharper when the AI system is embedded in customer-facing or regulated workflows, where the compliance function may want conservative evidence while the security team wants broader adversarial coverage.

Best practice is evolving for AI-specific testing, and there is no universal standard for this yet. Some frameworks are moving toward stronger expectations for model risk management, documentation, and post-deployment monitoring, while others still rely on general security controls. In that environment, AI pentesting may be accepted as supplementary evidence, but not as the sole proof that the control is operating effectively.

There are also edge cases where the answer depends on the business context:

  • in privacy-heavy or identity-heavy systems, the test may need to prove that personal data, credentials, or verification signals cannot be exfiltrated;
  • in financial or AML workflows, evidence quality may need to be aligned with auditability and retention expectations, especially where trust decisions affect onboarding or transaction screening;
  • in agentic AI, a test can be technically sound but still fail compliance if it does not show control over tool access and execution authority.

Where organisations need a more rigorous identity or trust lens, the same evidence should also be considered against obligations in frameworks like ISO/IEC 27001:2022 Information Security Management and, where relevant to financial crime controls, the FATF Recommendations. The recurring edge case is when the organisation needs both a security test and a compliance attestation, because one artefact rarely satisfies both purposes without additional human validation.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST AI RMF, NIST SP 800-53 Rev 5 and ISO/IEC 27001 set the technical controls, while PCI DSS v4.0 define the regulatory obligations.

Framework Control / Reference Relevance
NIST CSF 2.0 GV.RM-01 Risk management decisions determine whether AI testing is acceptable evidence.
NIST AI RMF AI RMF addresses trustworthy testing, validation, and governance of AI systems.
NIST SP 800-53 Rev 5 CA-2 Security assessments drive evidence expectations for control effectiveness.
ISO/IEC 27001 A.8.29 Security testing and assurance must support ISMS control effectiveness.
PCI DSS v4.0 11.4.1 Penetration testing expectations can remain prescriptive in payment environments.

Keep human-led penetration testing where payment-card obligations require explicit test evidence.