cognita skillscognita probeThe penetration test

cognita probe
The penetration test

Set up, check the accounts, then work through the methodology.

What Claude runs in a penetration test and what you can run yourself: the engagement, the sign-ins and the authorization sweep judged against who should have access, the playbooks it reads on demand, repeat tests that start from the last one, and the chains it proves.

Penetration test, step by step

Eleven steps, from the approval to the package.

This is how the deep test of cognita lms in the report tour ran, on a development build with fictional data. Claude follows OWASP's Web Security Testing Guide and API Security Top 10; every step below is a pt command you can run yourself, and Claude runs it for you and records what it finds.

  1. Agree the scope. Who approved the test and under which reference, the targets, the window, the test accounts, the request rate and whether data may be changed. pt init records it, and every later command is checked against it.
  2. Start the sandbox. pt up starts the test container behind a gateway that reaches only the agreed hosts and ports and answers no other name.
  3. Check every account. A sign-in recipe, then pt accounts signs in as each one and shows its role, and warns if a role is missing.
  4. Map and plan. The route list from the source, a written threat model, and a database and file backup before anything is changed.
  5. Read the code. With the source mounted read-only, pt srcscan runs static analysis and a secret scan, and Claude reads entry points, the checks in front of them and each path to a sink.
  6. Test in parallel. In a deep test, five specialist testers take one risk area each (authorization, sign-in and sessions, injection and XSS, files and imports, business logic) with their own accounts and a share of the request budget.
  7. Record leads, not findings. A specialist that reproduces an issue records it as a lead with a script that proves its own precondition. Passed tests are recorded too.
  8. Verify twice, then promote. pt lead verify --twice re-runs every lead side by side. Each one that holds is traced to the shipped code, rated from its CVSS vector and promoted to a finding.
  9. Look for chains. What each finding needs and gives is listed, combinations are matched, and each candidate is run end to end from the weakest position.
  10. Clean up and compare. Everything testing created is in a ledger, removed or left with a reason, and the database is compared with the backup to confirm nothing else changed.
  11. Report and hand over. pt report --package writes the report and the package for cognita soc, then the sandbox is removed and nothing is left behind.
Steps 1 to 3 · scope · sandbox · accounts
pt init cognita-lms-deep --app "Cognita LMS" \
   --target http://lms.example:42010 --target http://lms.example:42011 --target http://lms.example:8100 \
   --authorized-by "Application owner" --auth-ref "Owner approval" --end 2026-12-06 \
   --source ./cognita-lms-ba53f6c --allow-writes --max-rps 8
   engagement created; fill in creds.env
pt up
   egress gateway: the sandbox reaches only lms.example:42010, :42011 and :8100
   DNS: lms.example (answered by the gateway; every other name: NXDOMAIN)
pt login --recipe notes/login-recipe.json
pt accounts
   ADMIN      login ok         whoami 200  Administrator
   USER1      login ok         whoami 200  Training Manager
   USER2      login ok         whoami 200  Auditor
   USER3      login ok         whoami 200  Learner
   ... nine accounts across four roles
The sign-in recipe spaces sign-ins to stay under the application's limit of five a minute, shared by every tester.
Steps 4 to 6 · plan · white-box · specialists
pt threat-model
   notes/threat-model.md: all required sections present
pt srcscan
   bandit   : 3 medium/high issues -> evidence/bandit.json
   gitleaks : 0 hits
   trivy    : 2 misconfigurations
   These are leads: prove each against the running app, or record it as code review (Low/Info).
pt brief authorization --n 5
   AREA: authorization   Budget: 1.6 requests/s   Writes allowed: yes   Record prefix: AZ
Claude starts five specialists, one per risk area; each records its tests, leads and anything it leaves on the target.
The scan leads were checked by hand: the one in application code turned out to fetch a fixed internal address, so it went into the report as a test ruled out, not a finding.
Steps 7 to 9 · leads · findings · a chain
pt lead verify --twice
   L-002  reproduces    0.4s  Quiz attempt limit bypassed by parallel starts (max_attempts 1 -> 4 attempts)
pt lead promote L-002 --vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N --env-verdict source
   L-002 -> F-002; tests T-032 now fail with F-002
pt exec --purpose "chain C-001: F-002 + F-011" -- 'python3 scripts/chain_quiz_harvest.py'
   attempts opened by one burst (allowed: 1): [30, 32, 31]
   answer key in the attempt papers: False
   attempt 30: score 50 passed False; right answers learned so far: 1
   attempt 32: score 50 passed False; right answers learned so far: 2
   attempt 31: score 100 passed True; right answers learned so far: 2
pt chain new "Learner passes a one-attempt quiz knowing none of the answers" --links F-002,F-011 --status proven --severity Medium
The chain was run from a fresh learner account whose script held no answer key. Two earlier runs guessed both answers right on the first try and proved nothing; the script said so and they were not counted.
Steps 10 and 11 · clean up · report
pt artifact list --open
   no open artefacts
pt report --package
   16 findings (0 dismissed), 105 test cases, 1 chained vulnerabilities, 44 screenshots  ->  grc package v1.0
   the report is still a Draft (sign-off fields blank)
pt cleanup --current --yes
   nothing left behind by 2026-11-29-cognita-lms-deep
Test accounts and records the retest needs stay on the target, each with its reason in the ledger; the sandbox and its gateway do not.
DepthWhat runsClaude Code usage
QuickSetup, account check, recon, the authorization matrix, configuration and authentication checks, injection on the riskiest inputs.Lowest
StandardEvery methodology phase, a written threat model, and the Strix playbook for each risk area.Moderate
DeepStandard, plus parallel specialist subagents per risk area that share what they gain while testing, a white-box source review, and a second pass on every follow-up.Highest
Expected access

Who should reach what, written down

pt routes writes an expected-access policy from the source: Spring role annotations or a gateway's action registry, one row per route or action and module, for the tester to review. pt authz judges every cell of the role matrix against it ("got past although only Teller is allowed", "refused although allowed"), and on a lab can call each route as only the roles it should refuse, writes included, after a backup.

Attack surface

What the front end ships to every user

pt bundle downloads a JavaScript front end with every chunk its loader can fetch and reads out the API calls, routes and permission codes inside. Set against the crawl and the server's routes, it shows the endpoints no page links to.

White-box

A source review with an order to it

With the source mounted, Claude reads it in fixed steps: entry points, the defences in front of them, then each path from input to sink. A weakness read in the code is a lead until it is proven against the running application.

Repeat tests

Every earlier finding, mapped

pt init --like carries the sign-in settings, routes, threat model and every earlier finding's reproduction into a repeat test. The old reproductions run first; each finding is then recorded as a repeat of an earlier one or as new, and the report says what became of each earlier finding, so the time goes to what changed.

Strix's playbooks

Strix's testing knowledge, without the Strix agent.

Strix is an open-source offensive-security toolkit. cognita probe reuses its seventy-seven testing playbooks (Strix 1.7.1, plus its newer Spring Boot playbook) under the Apache-2.0 licence. Its sandbox image is its own, and it does not run Strix's autonomous agent or need a model API key. Claude, in your Claude Code session, is the only thing driving the test.

The sandbox

Built for what the tests run

Built from the official Python image (about 3.4 GB): Python with the HTTP, crypto and parsing libraries test scripts use, Playwright with Chromium, a recording proxy, nuclei with its templates offline, sqlmap, nmap, semgrep, bandit, gitleaks, Trivy and OSV-Scanner, and a trimmed SecLists. Every download is pinned and checksum-verified. A tool a test needs beyond these is added to the image first, because the sandbox has no internet.

77 playbooks

Read on demand, not run blind

Vulnerability classes, frameworks, protocols and cloud. Claude reads the playbook for a risk area before testing it, for example the IDOR playbook before the authorization matrix.

Claude Code

Your plan, not a pay-per-call agent

Because Claude in Claude Code drives the test, it runs on your Claude Code plan. No model key is configured, and no agent acts outside the commands you can see and re-run yourself.

cognita probe, Strix and ARTEX, side by side

Three tools that prove a vulnerability by exploiting it rather than flagging a signature. Strix and ARTEX are open-source projects that run their own agents; cognita probe is driven by Claude in your own session and is built around an authorised engagement. The Strix and ARTEX columns describe what each project's own documentation says.

cognita probeStrixARTEX
What it isA Claude Code skill, a small command-line tool and a sandbox container.An open-source command-line agent (Apache-2.0), with a managed cloud.An open-source, self-hosted platform (AGPL-3.0): one server with a web interface and a PostgreSQL database.
Who testsClaude in your Claude Code session; in deep mode, up to five Claude Code subagents that share what they gain.Strix's own autonomous agents: a root agent and the specialists it spawns.A planner that splits a goal into intents and workers that each carry one out, in a loop that runs until the goal is proven.
Model and costYour Claude Code plan. No separate model key.Any model through LiteLLM with your API key, capped per run; or credits on the managed cloud.Your own Anthropic or OpenAI-compatible endpoint, or a local Ollama; several profiles with failover; token and turn budgets per task.
What you seeEvery command before it runs, each numbered and logged with its full output.The agents choose and run their own commands; you receive the findings and the run's output.A web interface with each session's tool calls, an exploration graph of what was tried and why, an asset coverage graph and the recorded traffic.
Human controlThe session is yours: you approve the plan and can stop at any command. Hard rules make Claude stop and ask.Runs unattended once started.An interception gate can require a person's approval for tool calls, by rule; a chat lets you steer a running task.
Scope and safetyScope, authorization and window recorded, then checked in code before every command; an egress firewall and gateway in the sandbox; a rate limit; test passwords refused in commands and masked in every log.Targets on the command line; credentials and scope rules given to the agent as instructions.Scope rows that bound what is explored, an optional gate that refuses unapproved destinations, and a noise governor that paces requests to the target.
Target outputFramed as data, never instructions, wherever it is shown to Claude.Not described.Tool results framed between tagged markers so the model treats them as data, on by default.
Evidence and QAEach finding needs a working reproduction; the evidence it cites is checked against the hashed command log and proxy records, and the report is refused if a cited record changed. CVSS computed from the vector; lab-only causes checked; chains analysed.Each finding comes with a proof-of-concept.A recording proxy and a browser extension capture traffic; a finding is marked verified only when a bound response and word-for-word evidence quotes support it.
RetestA retest pack and a browser retest run with evidence; a retest checks every affected instance, not only the one reported. A repeat test maps every finding to the earlier one or marks it new.Run the scan again.A retester agent re-runs a finding and records still reproducible, fixed or cannot confirm.
CoverageEndpoints found from routes, the front-end bundle and the crawl, set against the endpoints actually requested, per role.Not described.A coverage ledger and graph of in-scope assets, tested or untested.
No running targetBuilds the application from source into a disposable, air-gapped lab, then tests it black-box and white-box.Point it at source code for a white-box scan.Tests the targets it is given; building a lab from source is not described.
Scanner resultsA Fortify results file is triaged, and its Critical and High findings are tested against the running application to show which are exploitable.Not an input.Assets can be synchronised from a ScopeSentry instance.
OutputA print-ready PDF report with sign-off, a test register that lists passes, finding cards, chains and the command log; packages for cognita soc and cognita grc.Markdown, JSON, CSV and SARIF findings.Reports and exports of findings and evidence, and task archives with traffic snapshots encrypted at rest.
Where it runsLocally from Claude Code with Docker; the kit and image copy to an isolated test machine.Locally with Docker, in CI on every pull request, or in the managed cloud on a schedule.On your own host: Docker Compose or a single binary, used through the browser.

cognita probe uses the Strix playbooks. Treating target output as data and checking evidence quotes against the record are ideas ARTEX published first; cognita probe implements them in its own code and uses none of ARTEX's. "Not described" means the project's documentation does not state it, not that it cannot be done. Compared in November 2026; both projects move quickly.

Reach for cognita probe

For your own team testing the applications you own, release after release: inside an agreed scope, showing every command it ran, and ending in a report a reviewer signs off and records cognita soc tracks to closure.

Reach for Strix

For fast, unattended scans: a security gate on every pull request, or scheduled scans across many targets, with SARIF in code scanning as the output.

Reach for ARTEX

For long-running, autonomous exploration of a wide estate from a shared web interface, with a team watching the graphs and approving the risky steps.

Chained vulnerabilities

A high, a medium and a low can add up to one critical attack.

Once the findings have passed QA, Claude asks what each one needs to work and what it gives an attacker, and looks for findings whose output feeds another's input. Every candidate chain is tried from its starting position with one reproduction script: if it works end to end it is recorded as proven and rated on its combined impact; if it breaks, where it breaks is recorded too.

Analyse · prove · record a chain
pt chain analyze
   notes/chain-analysis.md   9 findings · 4 observations   needs / gives
   F-002  needs: a signed-in customer        gives: script in another customer's browser
   F-006  needs: a request with the cookie   gives: the victim's email changed
   F-007  needs: a cross-site request        gives: the session cookie sent with it

Claude writes one script that runs the whole attack from a test customer's session.
pt exec --purpose "chain: payee script to email change" -- 'cd scripts && python3 chain_c001.py'
   [0088] tester1 payee nickname -> tester2 views payees -> tester2 email changed   CHAIN WORKS
pt chain new "Payee nickname script changes the victim's email, then their password" \
   --links F-002,F-006,F-007 --status proven --entry "signed-in customer" \
   --vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N --repro "python3 scripts/chain_c001.py"
   C-001 recorded   Critical 9.0   links High · Medium · Low

pt chain new "Statement access by id reaching another customer's transfers" \
   --links F-001,T-013 --status ruled-out
   C-003 recorded   ruled out: function-level checks held (T-013)
A chain rated below its strongest link draws a warning. pt retest C-001 re-runs the whole chain after a fix.
In the report

A section of its own

The conclusion of the analysis, each proven chain with its links in attack order and its end-to-end proof, the candidates that broke, and "Part of chain" on every finding card. Open chains count towards the overall rating.

In cognita soc

Chains travel in the package

The Penetration Testing module shows each chain beside the findings it links, with every link's tracking status, so remediation can start with the fix that breaks the attack.

Nothing found

Saying so is a result too

If no findings combine, the report says the analysis was done and nothing chained, rather than leaving the reader to wonder.

The step-by-step transcripts come from our own deep test of cognita lms on a development build with fictional data; the chain transcript uses a fictional bank's demonstration data. cognita probe runs real attacks and must be used only on systems you are authorised to test. Next: the report and handover.