<< All versions

Skill v1.0.0

currentAutomated scan100/100
nadamohamed14796-byte/cyber-strike/attack-exceptional-conditions
──Details
PublishedNovember 17, 2026 at 01:34 PM
Content Hashsha256:976114e28503a532...
Git SHA32a9749606ca
──Files
Files (1 file, 5.4 KB)
SKILL.md5.4 KBactive
SKILL.md · 79 lines · 5.4 KB

name: attack-exceptional-conditions description: "Review error, timeout, retry, partial-failure, cancellation, and fallback paths for inconsistent security controls." category: "web-application" version: "1.0.0" tags: [error-handling, fail-safe, retry, timeout, queues, authorization] chains_with: [attack-business-logic, attack-race-condition, attack-triage-validation, attack-evidence-hygiene] tech_stack: [web, api, distributed-systems, queues] prerequisites: ["Prefer code/config review and controlled test environments", "Avoid causing production instability"]


Exceptional Conditions and Fail-Safe Review

Goal

Check whether normal-path controls remain enforced during exceptions, dependency failures, retries, fallback behavior, cancellation, and partial completion. A 5xx response or timeout alone is not a security finding.

Review workflow

  1. Identify one security invariant and its normal successful path.
  2. Trace authorization, validation, audit, and state changes across every stage.
  3. Prefer source review, unit/integration tests, dependency stubs, and staging fault injection.
  4. Use synthetic fixtures and a known-good baseline. Change one failure condition at a time.
  5. Verify authoritative final state, not only response status or error text.
  6. Record rollback/compensation and cleanup behavior.
  7. Stop if the test risks production instability, real financial effects, notifications, or irreversible state changes.

Coverage matrix

Failure boundaryControlled reviewExpected safe behavior
Identity/policy service unavailableStaging stub returns a controlled errorNo silent grant or privileged default identity
Validation/parser failureHarmless malformed fixtureReject before protected state changes
Dependency timeoutSimulated staging timeoutRequired authorization and tenant checks remain enforced
Retry/idempotencyDisposable synthetic job or recordNo duplicate protected side effect beyond the documented contract
Partial transactionControlled failure between test stagesRollback or compensation leaves no orphaned authority/resource
Cache fallbackSynthetic private response with two controlled identitiesNo cross-identity reuse
Async queue/dead letterTest-owned job with known tenant contextOwner/tenant authorization persists through retry and replay
CancellationCancel a disposable workflow at a supported stageFinal state and compensation are consistent
Audit/logging failureStaging-only simulated sink failureCritical operation follows documented fail-safe policy
Error outputSynthetic sensitive marker in a test errorNo secrets or unrelated private data in client response/logs

Test design

For each case, record the invariant, expected failure behavior, controlled fault, observed decision, authoritative state, negative control, and cleanup. Do not stress production to provoke timeouts. If the path cannot be safely reproduced, mark it inconclusive and provide the owner with a specific regression test.

Finding criteria

Confirm only when a failure path reproducibly violates a security invariant and the impact is demonstrated. Distinguish reliability defects from authorization, confidentiality, integrity, or business-logic defects.

Chain routing

  • Duplicate effect after retry/concurrency: business-logic or race-condition review, only if the invariant is violated.
  • Policy failure allows access: authentication/authorization review.
  • Error exposes sensitive data: information-disclosure review with minimal redacted proof.
  • Stale cached private response crosses identities: cache review using controlled contexts.

Evidence contract

Record operation, invariant, fault condition, principal/tenant, expected result, observed result, side-effect state, rollback result, negative control, evidence reference, and cleanup status. A stack trace, timeout, retry, or 5xx alone is not confirmation.

References

  • https://owasp.org/www-project-web-security-testing-guide/
  • https://cwe.mitre.org/data/definitions/703.html
  • https://cwe.mitre.org/data/definitions/636.html
  • https://owasp.org/Top10/2025/A10_2025-Mishandling_of_Exceptional_Conditions/

Agent-executable CLI tooling, resources, and helper scripts

  • curl or Python httpx: compare one documented boundary/error condition against a baseline.
  • Schemathesis: generate schema-based API cases against a local/staging service where the schema and test environment are available.
  • pytest or the project's test runner: preserve a regression fixture for a reproduced edge case.
  • python3 .cyberstrike/skill/scripts/http_response_diff.py baseline-redacted.txt candidate-redacted.txt: compare saved responses offline.

Verify curl --version, the chosen Python client, and the test tool's --help. Official docs: https://schemathesis.readthedocs.io/en/stable/guides/installation/, https://docs.pytest.org/en/stable/getting-started.html, https://curl.se/docs/.

Resources

  • https://owasp.org/www-project-web-security-testing-guide/
  • https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html
  • https://schemathesis.readthedocs.io/en/stable/

Result handling

Use schema-driven cases in a local/staging environment. Record baseline, one changed boundary condition, expected vs actual, error classification, and cleanup. A 500 response, timeout, or stack trace is a signal, not proof of exploitable impact.

All versions