Audience: CISOs integrating AI into their ISMS, ISO 27001/42001 auditors, AI security engineers, red team leads, risk managers overseeing AI deployments, and compliance teams preparing for EU AI Act Article 15 (accuracy, robustness, cybersecurity).

Published October 14, 2026. ISO/IEC 27090:2026 is the first international standard from JTC 1/SC 27 focused entirely on AI security. It is guidance (56 pages), not a certifiable management system. You do not get "ISO 27090 certified." Instead, you use it as the AI threat layer inside your existing ISO 27001 ISMS or ISO 42001 AIMS. The standard contains two binding "shall" statements in Clause 5.1: organizations shall implement risk-based controls and shall consider AI-specific compromises across the full system lifecycle.

Contents

1. What ISO 27090 Is (and What It Is Not) 2. The Nine Threats, in Plain Language 3. SWT3 Evidence Mapping 4. Procedure Cards 5. Where 27090 Fits in Your Existing Program 6. What the Examiner Will Ask 7. Quick Start 8. References

1. What ISO 27090 Is (and What It Is Not)

ISO/IEC 27090:2026 carries the formal title Cybersecurity -- Artificial intelligence -- Addressing security threats and compromises to AI systems. It was developed by ISO/IEC JTC 1/SC 27 (the same committee behind ISO 27001 and ISO 27002) and published on October 14, 2026 as Edition 1.

The standard does three things:

  1. Names the threats. Clause 6 defines nine types of compromise specific to AI systems, from data poisoning to prompt injection. Before this standard, organizations relied on scattered resources (MITRE ATLAS, OWASP, academic papers) to enumerate AI threats. ISO 27090 consolidates them into a single, internationally recognized taxonomy.
  2. Describes the mitigations. Clause 7 pairs each threat with defensive measures and explains how mitigations interact, conflict, and degrade over time.
  3. Frames the security practices. Clause 5 covers the organizational practices that make threat management possible: governance, zero trust, supply chain management, threat modelling, and red teaming.

What It Is Not

The two "shall" statements. Most of ISO 27090 uses "should" and "can," but Clause 5.1 contains two normative requirements: organizations shall implement ISO 27002-style controls based on a risk assessment, and shall take AI-specific compromises into account across the lifecycle. If your auditor references 27090, these two statements carry binding weight.

2. The Nine Threats, in Plain Language

Clause 6 of the standard names nine types of compromise. Each one exploits something unique about AI systems that traditional information security does not address. Here is what each threat looks like in practice.

Clause 6.1 Data Poisoning

An attacker manipulates training data to change how the system behaves. This can happen during initial training or through ongoing data pipelines. For example, mislabeled samples injected into a web-scraped dataset can cause a fraud detection model to wave through a specific transaction pattern. The manipulation may be invisible in aggregate statistics but devastating in targeted scenarios.

Why it matters: Unlike traditional data integrity attacks, poisoning does not corrupt the data in an obvious way. The data looks valid. The model trains successfully. The damage only appears when the model encounters the targeted input pattern in production.

Clause 6.2 Model Exfiltration

An attacker reconstructs a functional copy of your model by querying it and studying the outputs. A competitor scripts thousands of requests against a pricing API and trains a surrogate model that replicates your proprietary logic. The original model stays intact, but its competitive value is extracted.

Why it matters: Training a model represents significant investment in data, compute, and expertise. Exfiltration transfers that value to an adversary without breaching any traditional perimeter defense.

Clause 6.3 Evasion Attacks

An attacker crafts inputs that push the model into wrong answers while remaining imperceptible to humans. Small pixel changes can make an image classifier misread a stop sign. Carefully chosen word substitutions can bypass a content moderation filter. The model's confidence may remain high even as its output is wrong.

Why it matters: Evasion exploits the gap between how models process information and how humans perceive it. Standard input validation catches malformed data but not adversarial examples that are technically valid.

Clause 6.4 Membership Inference

An attacker determines whether a specific data record was used to train the model. By analyzing the model's confidence scores on known inputs versus unknown inputs, an adversary can infer training set membership. This is particularly dangerous when training data contains sensitive personal information, medical records, or proprietary business data.

Why it matters: Even if you never expose your training data directly, the model itself leaks information about what it was trained on. This creates privacy exposure that traditional access controls do not address.

Clause 6.5 Model Inversion

An attacker uses model outputs to reconstruct training data. Given enough queries and knowledge of the model architecture, it is possible to recover facial images, text passages, or other sensitive records from the training set. This goes beyond membership inference: the attacker does not just confirm that a record exists, they extract its content.

Why it matters: Organizations that fine-tune models on proprietary or regulated data (medical records, financial transactions, personnel files) face data exposure even without a traditional data breach.

Clause 6.6 Direct Model Poisoning

An attacker modifies the model itself rather than the training data. This can happen through supply chain compromise (tampered model weights in a public repository), insider access, or exploitation of the model update pipeline. The effect is the same as data poisoning, but the vector is different and often harder to detect.

Why it matters: Organizations increasingly use pre-trained models, fine-tuned models, and model registries. Each link in that supply chain is a potential poisoning vector that traditional software supply chain practices do not fully address.

Clause 6.7 Sensitive Model Output

The model reveals information it should not: proprietary data from fine-tuning, personal information from training, system prompts, or internal configuration details. This can happen through carefully crafted queries, edge cases in output filtering, or simply because the model memorized sensitive content during training.

Why it matters: Output filtering alone is insufficient because the sensitive information is encoded in the model weights themselves. The standard treats this as a distinct threat from data leakage because the exposure path is fundamentally different.

Clause 6.8 Prompt Injection

Content crafted to act as an instruction to the model, overriding the system's intended behavior. This includes direct injection (user input designed to bypass system prompts) and indirect injection (malicious content embedded in retrieved documents, tool outputs, or other context sources that the model processes as instructions).

Why it matters: Prompt injection is unique to language models and has no direct equivalent in traditional cybersecurity. It exploits the fact that models cannot reliably distinguish between instructions and data when both are presented as natural language.

Clause 6.9 Output Injection

The model's output contains content that, when processed by downstream systems, acts as an attack. For example, a model generating code could include a command injection payload. A model composing database queries could produce SQL injection. A model generating web content could embed cross-site scripting. The model may produce this output without any malicious intent if its training data contained such patterns.

Why it matters: AI systems increasingly feed their outputs into other systems (CI/CD pipelines, databases, web applications, other AI agents). The output becomes the attack vector, and traditional output encoding may not anticipate the patterns an AI generates.

3. SWT3 Evidence Mapping

Each ISO 27090 threat and practice maps to one or more SWT3 witness procedures. The table below shows the primary mapping. Each procedure generates a cryptographic witness anchor that records the security evidence at the time of the AI operation.

Threat-to-Evidence Coverage

ISO 27090 Threat Clause Primary SWT3 Procedure Evidence Produced
Data poisoning 6.1 AI-DATA.1 + AI-DATA.2 Data provenance chain, quality metrics, distribution baselines
Model exfiltration 6.2 AI-MDL.5 + AI-MDL.1 Weight file SHA-256 hash, model lineage record, access logging
Evasion attacks 6.3 AI-SEC.1 + AI-ROBUST.1 Threat categories checked, adversarial detections, robustness scores
Membership inference 6.4 AI-DATA.3 + AI-FAIR.1 Privacy preservation method, differential privacy parameters
Model inversion 6.5 AI-DATA.3 + AI-SEC.1 Data minimization evidence, query rate monitoring
Direct model poisoning 6.6 AI-MDL.5 + AI-SUPPLY.1 Model weight integrity hash, supply chain verification
Sensitive model output 6.7 AI-GRD.1 + AI-CLR.2 Output guardrail status, clearing level classification
Prompt injection 6.8 AI-SEC.2 + AI-SEC.1 Input validation steps passed, threat detection status
Output injection 6.9 AI-GRD.1 + AI-SEC.2 Output sanitization status, downstream injection checks

Practice-to-Evidence Coverage

ISO 27090 Practice (Clause 5) SWT3 Procedures Evidence Produced
AI governance program AI-GOV.1 through AI-GOV.7 Governance scope, roles, risk management framework, policy attestation
Threat modelling AI-REDTEAM.1 + AI-SEC.1 Attack scenarios executed, threat categories covered, detection rates
Red teaming AI-REDTEAM.1 Tests executed, pass rate, coverage category (11 attack types)
Supply chain management AI-SUPPLY.1 + AI-SBOM.1 Component inventory, G7 SBOM clusters documented, provenance verification
Monitoring and logging AI-AUDIT.1 + AI-DRIFT.1 Audit trail completeness, drift detection metrics, incident response records
Development environment protection AI-MDL.5 + AI-DATA.1 Model weight integrity at build time, training data provenance chain

Coverage summary: 19 SWT3 procedures map to ISO 27090 threat categories and practices. The standard's nine threats are covered by 14 distinct procedures, and the six practices by 12 procedures (with overlap). No threat category is left without a corresponding evidence path.

4. Procedure Cards

Each card below maps an ISO 27090 threat to the SWT3 procedure that generates evidence of your mitigation. The assessor notes describe what an auditor referencing ISO 27090 will look for.

AI-DATA.1 -- Data Provenance

Defending Against Data Poisoning (Clause 6.1)

ISO 27090 requirement: Track the origin, transformation history, and integrity of all training data. Detect anomalies in data distributions before and after ingestion.

What SWT3 records: Each data ingestion event generates a witness anchor containing the source identifier, record count, and provenance chain hash. AI-DATA.2 (Data Quality) provides complementary evidence of distribution baseline comparisons and quality metrics.

Together, these two procedures create an evidence chain from raw data acquisition through preprocessing to model training. If a poisoning attack is later discovered, the provenance trail identifies which data batch was compromised and when it entered the pipeline.

Assessor Note

Request the provenance chain for a specific training dataset. Verify that each transformation step has a corresponding witness anchor. Ask what anomaly detection runs between ingestion and training, and whether distribution drift triggers alerts. If the organization relies on web-scraped or third-party data, ask how they verify source integrity before ingestion.

AI-MDL.5 -- Model Weight Integrity

Defending Against Model Exfiltration (Clause 6.2)

ISO 27090 requirement: Protect model weights as intellectual property. Monitor for extraction attempts through repeated querying patterns.

What SWT3 records: AI-MDL.5 generates a SHA-256 hash of model weight files at each checkpoint, creating an integrity baseline. AI-MDL.1 (Model Lineage) records the full ancestry of the model: which base model it descended from, what fine-tuning was applied, and which data was used.

Rate limiting and query monitoring are mitigation measures. The SWT3 evidence proves that the model you are serving today is the same model you validated yesterday, which is essential if an exfiltration attempt is suspected and you need to demonstrate that your production model was not itself a compromised copy.

Assessor Note

Ask for the model weight hash from the last deployment and compare it to the current production hash. They should match unless a deliberate update occurred. Check whether the organization monitors API query rates per client and whether anomalous patterns (high volume, systematic input variation) trigger alerts. Ask how pre-trained models from external sources are verified before integration.

AI-SEC.1 -- Adversarial Threat Detection

Defending Against Evasion Attacks (Clause 6.3)

ISO 27090 requirement: Detect and mitigate adversarial inputs that exploit model vulnerabilities while remaining imperceptible to human review.

What SWT3 records: Each inference generates a witness anchor recording the number of threat categories checked, threats detected, and whether the inference was blocked. AI-ROBUST.1 provides complementary robustness metrics.

The key insight from ISO 27090 is that evasion detection degrades over time as models and attack techniques evolve. The standard specifically calls out that mitigations "deteriorate" (Clause 7). SWT3 anchors create a time-series record that allows you to demonstrate ongoing vigilance, not just a point-in-time test.

Assessor Note

Review the threat category coverage: the organization should be checking for at least prompt injection, adversarial examples, and data poisoning. Ask when the detection model was last updated and whether it covers techniques published in the last 12 months. Request a sample of blocked inferences and verify the blocking rationale is documented. ISO 27090 Clause 7 explicitly notes that mitigations degrade; ask what the refresh cadence is.

AI-DATA.3 -- Data Privacy Preservation

Defending Against Inference Attacks (Clauses 6.4 and 6.5)

ISO 27090 requirement: Prevent the model from leaking information about its training data through membership inference or model inversion attacks.

What SWT3 records: AI-DATA.3 witnesses the privacy preservation measures applied to training data: differential privacy parameters, anonymization methods, data minimization steps. AI-FAIR.1 (Bias Detection) provides complementary evidence of subgroup analysis that can reveal unintended memorization.

These two threats are related: membership inference tells an attacker that a record exists in the training set; model inversion lets them reconstruct it. The defense against both starts with limiting what the model memorizes. SWT3 evidence proves that privacy-preserving techniques were active during training and remain in place during serving.

Assessor Note

Ask what privacy-preserving techniques are applied (differential privacy, data aggregation, record-level exclusion). Verify that sensitive datasets have documented retention policies and that model access controls limit who can run inference. For organizations handling regulated data (healthcare, financial), check whether membership inference testing has been performed as part of the red team campaign (AI-REDTEAM.1).

AI-SUPPLY.1 -- AI Supply Chain Verification

Defending Against Direct Model Poisoning (Clause 6.6)

ISO 27090 requirement: Verify the integrity of model artifacts throughout the supply chain, from pre-trained model acquisition through fine-tuning to deployment.

What SWT3 records: AI-SUPPLY.1 witnesses each supply chain verification step: source repository authentication, hash comparison against published checksums, and provenance metadata. AI-SBOM.1 records the full AI Bill of Materials with G7 cluster coverage.

Direct model poisoning is distinct from data poisoning because the attacker modifies the model weights directly, often through a compromised model hub, a tampered checkpoint, or an insider with pipeline access. The evidence chain from SWT3 makes it possible to trace exactly which version of which model was deployed, when, and from what source.

Assessor Note

Request the AI-SBOM for a deployed model. It should document the base model source, fine-tuning dataset, and all component dependencies. Ask whether model downloads from external registries (Hugging Face, model zoos) are verified against published hashes. Check whether the deployment pipeline includes integrity checks that would detect a weight file modified after the last training run.

AI-GRD.1 -- Output Guardrails

Defending Against Sensitive Model Output (Clause 6.7)

ISO 27090 requirement: Prevent models from exposing proprietary data, personal information, system prompts, or internal configuration through their outputs.

What SWT3 records: AI-GRD.1 witnesses guardrail enforcement on every inference: the number of output rules evaluated, rules triggered, and whether the output was modified or blocked. AI-CLR.2 (Clearing Level Classification) records the sensitivity classification applied to the response.

The standard recognizes that output filtering alone is insufficient because sensitive information can be encoded in model weights through memorization during training. The defense is layered: training-time data minimization (AI-DATA.3), runtime output filtering (AI-GRD.1), and clearing level enforcement (AI-CLR.2).

Assessor Note

Ask the organization to demonstrate a guardrail trigger. Request examples of outputs that were blocked or redacted. Verify that the clearing level classification is appropriate for the data sensitivity. For models fine-tuned on regulated data, ask whether the output filter specifically screens for PII, PHI, or proprietary content patterns. Check whether guardrail rules are versioned and whether rule updates are witnessed.

AI-SEC.2 -- Input Validation and Sanitization

Defending Against Prompt Injection (Clause 6.8)

ISO 27090 requirement: Detect and mitigate inputs designed to override the system's intended behavior, including both direct injection and indirect injection through retrieved context.

What SWT3 records: AI-SEC.2 witnesses input validation on each inference: schema checks, length limits, encoding verification, and injection pattern detection. The anchor records how many validation steps were required, how many passed, and whether the input was rejected.

Prompt injection is unique to language models. ISO 27090 acknowledges that there is currently no complete defense, and the standard frames mitigation as a combination of input validation, privilege separation, and output verification. The SWT3 evidence trail demonstrates that the organization is applying available mitigations consistently, even though the threat landscape continues to evolve.

Assessor Note

Ask whether the organization distinguishes between direct prompt injection (user-crafted malicious input) and indirect prompt injection (malicious content embedded in documents or tool outputs the model retrieves). Verify that input validation includes more than length limits: look for injection pattern matching, role boundary enforcement, and context source verification. For agentic systems, ask how tool call inputs from the model are validated before execution.

AI-GRD.1 + AI-CHAIN.1 -- Output Safety Chain

Defending Against Output Injection (Clause 6.9)

ISO 27090 requirement: Prevent model outputs from acting as attack vectors when processed by downstream systems (code execution, database queries, web rendering, other AI agents).

What SWT3 records: AI-GRD.1 witnesses output guardrail enforcement. AI-CHAIN.1 (Decision Chain Audit) records the full chain of reasoning and output transformations when multiple systems process the model's output sequentially.

Output injection is the threat that grows with AI system integration. Every downstream system that consumes model output without validation becomes an attack surface. The standard specifically calls out code generation, database query construction, and content rendering as high-risk output paths.

Assessor Note

Identify all systems that consume model output. For each one, ask what output sanitization is applied before the output reaches the downstream system. If the model generates code, ask whether that code is sandboxed before execution. If the model composes database queries, ask whether parameterized queries are enforced. For multi-agent chains, verify that each agent validates its predecessor's output rather than trusting it implicitly.

AI-REDTEAM.1 -- Adversarial Test Campaign

Red Teaming (Clause 5, Annex A)

ISO 27090 requirement: Conduct structured adversarial testing that covers the threat categories named in Clause 6. The standard recommends mapping attacks to assets using the framework in Annex A.

What SWT3 records: AI-REDTEAM.1 witnesses adversarial test campaigns: the number of attack scenarios executed, the number successfully mitigated, and the coverage category. The procedure supports 11 coverage categories aligned with ISO 27090's threat taxonomy: prompt injection, jailbreak, data poisoning, model extraction, membership inference, adversarial examples, supply chain, denial of service, output manipulation, privilege escalation, and comprehensive.

Assessor Note

Ask for the most recent red team report and compare its scope to the nine threats in Clause 6. At minimum, the campaign should cover data poisoning, evasion, prompt injection, and model exfiltration. Check whether the red team is internal or external. ISO 27090 does not require external red teaming, but auditors should note the potential for blind spots in internal-only campaigns. Verify that findings from red team exercises feed back into the mitigation controls witnessed by AI-SEC.1 and AI-GRD.1.

AI-AUDIT.1 + AI-DRIFT.1 -- Continuous Monitoring

Lifecycle Monitoring (Clause 5, Clause 7)

ISO 27090 requirement: Monitor AI systems continuously for signs of compromise, performance degradation, and mitigation deterioration. Clause 7 specifically notes that security mitigations degrade over time as new attack techniques emerge.

What SWT3 records: AI-AUDIT.1 witnesses audit trail completeness. AI-DRIFT.1 records drift detection metrics that can reveal subtle signs of poisoning or evasion that only manifest as gradual performance changes.

The combination of audit trail and drift monitoring creates a continuous security posture record. A sudden change in drift metrics may indicate an active attack. A gradual degradation may indicate a slow-acting poisoning campaign or a shift in the threat landscape that has outpaced your mitigations.

Assessor Note

Ask for the drift monitoring dashboard and look for anomalies that coincide with data pipeline changes, model updates, or external events. Verify that drift thresholds are set to trigger alerts, not just log entries. Ask how often the organization reviews whether its security mitigations remain effective against current threat techniques. The standard's warning about mitigation deterioration (Clause 7) is the most operationally important insight in the document.

5. Where 27090 Fits in Your Existing Program

ISO 27090 is not a standalone compliance project. It is the AI threat layer that plugs into the management systems you already operate.

If You Have an ISO 27001 ISMS

Use ISO 27090's threat catalog to extend your risk assessment. Clause 6.1.3 of ISO 27001 allows you to take controls from any source, so 27090 mitigations can be cited directly in your Statement of Applicability. Add AI-specific threats to your risk register, map them to the 27090 clause references, and assign the SWT3 procedure IDs as the evidence controls. Your next surveillance audit can then verify that the AI threats are addressed with the same rigor as traditional information security threats.

If You Have an ISO 42001 AIMS

ISO 42001's Annex A calls for security measures for AI systems (A.6.2.6) but does not identify specific attacks. ISO 27090 fills that gap. Map each Annex A.6.2 control to the corresponding 27090 clause, and use the SWT3 evidence to demonstrate that the security objectives in your AIMS are met with specific, measurable mitigations.

If You Are Preparing for EU AI Act Article 15

Article 15 requires high-risk AI systems to be "resilient as regards attempts by unauthorised third parties to alter their use, outputs or performance by exploiting the system vulnerabilities." That is a direct reference to the threats described in ISO 27090 Clauses 6.1 through 6.9. The SWT3 evidence chain from the procedures mapped above provides the technical documentation that demonstrates Article 15 compliance.

Relationship to MITRE ATLAS

ISO 27090 and MITRE ATLAS serve different purposes. ISO 27090 is the strategic standard: it names threat categories, describes organizational practices, and frames the management approach. MITRE ATLAS is the tactical catalog: it enumerates specific attack techniques, tools, and case studies. Use MITRE ATLAS for red team planning and technique-level analysis. Use ISO 27090 for management system integration and audit evidence. See our MITRE ATLAS crosswalk for the tactical-level mapping.

Dimension ISO 27090 MITRE ATLAS
Level Strategic / organizational Tactical / technique-level
Authority ISO/IEC (international standard) MITRE (community knowledge base)
Certifiable No (guidance) No (knowledge base)
Use case Risk register, SoA, management review Red team playbooks, detection engineering
Updates Standards cycle (years) Continuous (community contributions)

6. What the Examiner Will Ask

If your auditor or assessor references ISO 27090, here are the questions you should be prepared for.

Examiner Question What They Want to See SWT3 Evidence
How do you identify AI-specific security threats? A documented risk assessment that references the nine Clause 6 threat categories AI-GOV.6 scope definition + AI-REDTEAM.1 campaign reports
How do you verify training data integrity? Provenance tracking, distribution monitoring, anomaly detection AI-DATA.1 provenance chain + AI-DATA.2 quality baselines
How do you protect model weights from tampering? Hash verification, access controls, supply chain checks AI-MDL.5 integrity hashes + AI-SUPPLY.1 verification records
How do you handle prompt injection? Input validation, injection detection, privilege separation AI-SEC.2 validation steps + AI-SEC.1 threat detection
How do you prevent sensitive data leakage through model outputs? Output filtering, clearing level enforcement, PII detection AI-GRD.1 guardrail status + AI-CLR.2 clearing level
How do your mitigations keep pace with evolving threats? Regular red teaming, monitoring refresh cadence, mitigation versioning AI-REDTEAM.1 campaigns (time-series) + AI-DRIFT.1 monitoring
What is your AI bill of materials? Complete component inventory covering models, data, infrastructure AI-SBOM.1 with G7 cluster coverage
How do you handle incidents involving AI systems? Classification, escalation, root cause analysis, remediation tracking AI-INCIDENT.1 incident records + AI-AUDIT.1 trail

7. Quick Start

The following examples show how to witness AI security controls using the SWT3 SDK. Each call generates a cryptographic anchor that proves your mitigation was active at the time of the inference.

Python

from swt3_ai import Witness

witness = Witness(
    api_key="your-api-key",
    tenant="your-tenant-id"
)

# Witness adversarial threat detection (AI-SEC.1)
# Maps to ISO 27090 Clause 6.3 (evasion), 6.8 (prompt injection)
witness.witness(
    procedure="AI-SEC.1",
    factor_a=6,           # threat categories checked
    factor_b=0,           # threats detected (0 = clean)
    factor_c=0,           # not blocked
    model_id="gpt-4o",
    observations={"iso_27090_clauses": ["6.3", "6.8"]}
)

# Witness input validation (AI-SEC.2)
# Maps to ISO 27090 Clause 6.8 (prompt injection)
witness.witness(
    procedure="AI-SEC.2",
    factor_a=4,           # validation steps required
    factor_b=4,           # validation steps passed
    factor_c=0,           # input accepted
    model_id="gpt-4o",
    observations={"checks": ["schema", "length", "encoding", "injection_pattern"]}
)

# Witness model weight integrity (AI-MDL.5)
# Maps to ISO 27090 Clause 6.2 (exfiltration), 6.6 (direct poisoning)
witness.witness_model_weights(
    model_id="fraud-detector-v3",
    file_path="/models/fraud-v3/weights.safetensors",
    observations={"iso_27090_clauses": ["6.2", "6.6"]}
)

# Witness red team campaign (AI-REDTEAM.1)
# Maps to ISO 27090 Clause 5 (red teaming), Annex A
witness.witness(
    procedure="AI-REDTEAM.1",
    factor_a=45,          # attack scenarios executed
    factor_b=42,          # attacks mitigated (93% pass rate)
    factor_c=10,          # coverage: comprehensive
    model_id="fraud-detector-v3",
    observations={
        "campaign": "Q4-2026-quarterly",
        "iso_27090_coverage": ["6.1", "6.2", "6.3", "6.6", "6.8", "6.9"]
    }
)

witness.flush()

TypeScript

import { Witness } from "@tenova/swt3-ai";

const witness = new Witness({
  apiKey: "your-api-key",
  tenant: "your-tenant-id",
});

// Witness adversarial threat detection (AI-SEC.1)
await witness.witness({
  procedure: "AI-SEC.1",
  factorA: 6,           // threat categories checked
  factorB: 0,           // threats detected
  factorC: 0,           // not blocked
  modelId: "gpt-4o",
  observations: { iso27090Clauses: ["6.3", "6.8"] },
});

// Witness input validation (AI-SEC.2)
await witness.witness({
  procedure: "AI-SEC.2",
  factorA: 4,           // validation steps required
  factorB: 4,           // validation steps passed
  factorC: 0,           // input accepted
  modelId: "gpt-4o",
  observations: { checks: ["schema", "length", "encoding", "injectionPattern"] },
});

// Witness model weight integrity (AI-MDL.5)
await witness.witnessModelWeights({
  modelId: "fraud-detector-v3",
  filePath: "/models/fraud-v3/weights.safetensors",
  observations: { iso27090Clauses: ["6.2", "6.6"] },
});

// Witness red team campaign (AI-REDTEAM.1)
await witness.witness({
  procedure: "AI-REDTEAM.1",
  factorA: 45,          // attack scenarios executed
  factorB: 42,          // attacks mitigated
  factorC: 10,          // coverage: comprehensive
  modelId: "fraud-detector-v3",
  observations: {
    campaign: "Q4-2026-quarterly",
    iso27090Coverage: ["6.1", "6.2", "6.3", "6.6", "6.8", "6.9"],
  },
});

await witness.flush();

8. References