Join our Newsletter — 33% off our NHI Course

Per-target Context

The application-specific material an agent receives so it can understand what the target is supposed to do. This is crucial when the flaw is in business logic, because generic scanning usually misses failures that only make sense in the application’s own operating context.

What Per-target Context Means

Per-target context is the application-specific material an agent needs to interpret what the target is supposed to do. It gives the model the operational cues that generic scanning or pattern matching cannot infer from code or traffic alone.

Why It Matters for Business-Logic Flaws

Business-logic issues often depend on the intended workflow, user role, state transitions, or allowed sequence of actions. Without that context, a system may look healthy under generic checks while still failing in ways that break real business rules, especially where normal inputs produce abnormal outcomes.

Per-target context is therefore not just extra detail, it is the reference frame that turns a suspicious behavior into a meaningful finding. It helps distinguish “unexpected” from “actually wrong” by tying observed behavior back to the application’s intended function.

What Good Context Usually Includes

Useful per-target context usually describes the target’s purpose, key entities, workflow boundaries, and the assumptions the application makes about state, timing, ordering, or permissions. It may also include business rules, exception handling, and the boundaries of acceptable automation or user behavior.

The strongest context is specific enough to explain how the target should behave under normal conditions, but not so broad that it hides the edge cases a tester or agent must evaluate. In practice, that means the context should support interpretation, not replace analysis.

How It Changes Testing and Analysis

Per-target context changes the quality of both automated and human review. It lets a scanner, agent, or analyst judge whether an outcome is merely unusual, or whether it violates the target’s own rules, which is essential when a flaw only appears in a particular workflow, role, or state.

This is especially important for checks that bind access and authorization to the target resource, because the evaluator must know which object, action, or workflow the request is actually meant to reach. It also aligns with MITRE ATLAS adversarial AI threat matrix techniques such as context poisoning and tool misuse, where the attacker abuses the surrounding context rather than the raw model output.

Risk and Threat Considerations

Per-target context is a control dependency, and weak or missing context can cause real exposure: business-logic flaws get missed, benign-looking actions are misclassified, and automated analysis may validate the wrong assumptions about the target’s behavior.

Failure mechanism: The agent or reviewer lacks the application-specific frame needed to interpret sequence, state, entitlement, or workflow constraints, so the actual failure path stays hidden behind superficially valid behavior.

Impact: Incorrect findings, missed abuse paths, and weaker detection of logic flaws can let attackers exploit rule gaps, inconsistent state handling, or unintended business outcomes.

Standards & Framework Alignment

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

MITRE ATLAS and OWASP API Security Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
MITRE ATLAS TXXXX — Context Poisoning ATLAS covers adversarial AI techniques including context poisoning against agentic systems.
Recommendation — Model context-poisoning scenarios and test whether target-specific context can be corrupted or omitted.
OWASP API Security Top 10 API5 — Broken Function Level Authorization Target context often defines which function a request is intended to perform.
Recommendation — Validate function-level access against the target workflow rather than generic request shape.
NIST SP 800-53 Rev 5 SA-11 — Developer Testing and Evaluation Testing logic flaws requires evaluation against the system’s intended behavior and edge cases.
Recommendation — Exercise application-specific test cases that reflect the target’s real business rules and states.
OWASP ASVS V8 — Authorization Per-target context is essential to verifying whether an action is authorized in the application’s own model.
Recommendation — Verify authorization decisions against the exact resource, role, and workflow the target expects.

Practitioner Guidance

What to watch for: Treat per-target context as a required input whenever evaluation depends on business rules, state transitions, or target-specific permissions. If a test result only makes sense when the application’s own operating context is known, the context is part of the analysis, not an optional enhancement.

Practitioner takeaway: The more a flaw depends on intent and workflow, the less useful generic inspection becomes without per-target context.