cognita skillscognita probeTesting

cognita probe
Testing

From source, from a Fortify scan, or from a running instance.

Where a test starts and what it runs: a lab stood up from the source, proven air-gapped and kept for the next test; Fortify's findings tested against the running application so only the exploitable ones reach the fix list; the information security test that ends in one workpaper for cognita grc; and the static, dependency and dynamic scans on their own.

From source

No running instance to point at? Build the lab from its source.

Sometimes all that exists is a source drop and no environment to test. pt lab stands one up for you: point it at the frontend and backend trees and it works out how each one builds, infers the datastores they need, and brings up a disposable environment — then wires its services into the engagement's scope and joins the sandbox to its network. The lab is air-gapped while it is built and while it runs, and the air gap is proven before the first test.

Build the lab · prove the air gap · wire it in
you  /pentest the Meridian claims portal — source only, no running instance

pt lab init --frontend ./meridian-web --backend ./meridian-api
   frontend   Vue build served by nginx               ->  http://frontend:80
   backend    Spring Boot 3, Maven module claims-app, JDK 17  ->  http://backend:8080
   db         PostgreSQL        mailpit      SMTP sink
   VUE_APP_BASE_API pointed at a real host: built with the lab's /api instead
   air-gapped: internal network, no published ports, source built offline
pt lab up
   air-gap rules: compose file and Dockerfiles comply
   building images… database seeded · backend on :8080 · frontend on :80
   air-gap check passed: no route out, no external DNS, no host  ->  evidence/airgap/
   added to scope: http://frontend:80, http://backend:8080
pt up
   sandbox joined the lab network only
   …test…
pt lab down -v --rmi     # containers, data and built images removed
The generated lab/ folder — compose file, Dockerfiles, an /api proxy and a seed hook — is yours to edit and rebuild with pt lab rebuild, which checks the air-gap rules again first.
Detects the stack

Frontend and backend, built to run

Node, React, Vue and Next; Django, FastAPI and Flask; Java with Maven or Gradle, read from the build itself: the module that runs, the JDK it needs, a Spring Boot jar or a war on Tomcat, its port and context path; Go, Rails, PHP and static sites. PostgreSQL, MySQL, SQL Server, MongoDB, Redis and a mail sink are added as the code expects, the application's own seed SQL is found and loaded, and the lab's services run as an unprivileged user.

Air-gapped

Nothing in the lab reaches out

The lab runs on an internal network with no gateway and no ports open to your machine, and the sandbox joins only that network. Builds are split so dependencies download first and the source is compiled with networking off. A build that breaks the rule is refused, and every command re-checks the sandbox's networks.

Disposable by design

Fictional data, removed at the end

Only fictional or sample data belongs in a lab. When the test ends, its containers, data and built images are removed by default; the engagement's evidence and report stay. Snapshots use the database's own dump, so a test can restore the lab between runs, and a lab can be cloned for a repeat test. A lab you built by hand can be brought under the same rules.

A lab kit per application

At the end of a test the lab is saved as the application's kit: the build steps, compose file and seed hooks, the sign-in recipe, the fixtures each finding needed, and a README of what this run learned, never the source or a credential. The next test of that application, or its next code drop, loads the kit with pt init --kit and is building straight away; pt lab kit seed puts the findings' fixtures back. Clean-up refuses to finish until the kit is saved after the last change to the lab.

Because the environment is one you built, every finding is checked against the shipped source before it is recorded and marked source, verify-in-prod or lab-artifact — so a quirk of the test setup, like seed data or an old schema, never reaches the report as a real finding.

Information security test

Baseline controls, the three scans, and one workpaper of what to fix.

An information security test checks an application against seventeen baseline controls: least privilege and segregation of duties, user groups or roles, default accounts, central identity management, multi-factor sign-in, concurrent sessions, password policy, lockout, idle timeout, encryption at rest and in transit, approved algorithms, sign-in and privileged-activity logging, audit-log integrity and log content. It runs SAST, SCA and DAST in the same engagement. Live checks prove what they can on the lab, rules read the code and configuration, and Claude decides the rest with evidence. Each control ends Pass, Fail, Partial, Needs evidence or Not applicable.

Info-Sec test · run · review · workpaper
pt init northwind-olb-infosec --infosec --source ./olb --fpr NorthwindOLB.fpr
pt infosec run
   SAST triaged · SCA scanned · 212 routes read from the source
   lab snapshot 'pre-test'
   baseline: lockout, sessions, MFA, sign-in logging checked live · idle check running as IDLE
   DAST as USER2 · coverage: 171 of 212 routes
   BL-11 Fail: the session is still valid after 16 idle minutes
   lab restored to 'pre-test'
pt baseline review
   BL-13 proposed Fail: fast hash in PasswordUtil.java:22 (a code pattern only)
pt baseline confirm BL-13 --note "it hashes the stored password"
pt check secrets
   no secrets found in the engagement's files
pt infosec workpaper
   31 items to fix, 19 recommendations · PDF · Excel · results by control
The lab is put back as it was at the end, after the idle check, so neither the test's writes nor a restart can change a result.
Your policy

Your thresholds and control numbers

Password length, lockout attempts, idle time and approved algorithms come from a policy profile kept on your machine, with your own control numbering. The tool itself ships neutral defaults.

No false passes

A check that cannot pass by failing

A check that proves a control by a refusal first proves the account works. If it cannot, the control is inconclusive, never passed. A result that rests on a code pattern alone waits for Claude or a reviewer to confirm it.

The workpaper

Only what to fix, then everything

Failed controls, true positives, dependencies to upgrade and confirmed alerts, ranked, with one item where the code and the live scan found the same weakness. Recommendations are grouped by fix, and the appendices hold every result of every part.

Into cognita grc

The Excel workpaper imports into an Information Security Testing assessment. The baseline results fill its test cases as recorded, with the evidence in each comment, and AI drafts one observation each for static analysis, dependencies and dynamic scanning. Everything is previewed and editable before it is saved.

SAST, SCA and DAST

One skill for the code, its dependencies and the running application.

The same rules hold for every test: scanner output is a lead until someone decides it, every decision carries its evidence, and a reviewer's verdict outranks Claude's, which outranks the rule's. The triage rules are a copy of cognita grc's own engines, so a verdict here matches what the platform would have said.

SAST · rules first, then Claude
pt init northwind-olb-sast --sast --fpr NorthwindOLB.fpr \
   --source ./olb --authorized-by "..."
   1,240 issues: 38 true, 702 false, 500 for review
pt sast review     # what the rules could not decide
pt sast verdict S-112 --verdict fp --as claude \
   --reason "sort field is whitelisted (StatementDao.java:88)"
pt sast add --category "Missing Authorization" \
   --file api/AdminController.java --line 41 --risk High
pt sast report
   PDF · reviewer workbook · verdicts for cognita grc
Without a Fortify file, Claude reviews the source by risk area and records each weakness it proves in the code.
SCA · offline, with reachability
pt sca update        # once, online: OSV, Trivy, KEV, EPSS
pt sca scan --images # offline, in the sandbox
   pom.xml: direct dependencies; the built images carry the full tree
   frontend: no lockfile shipped, scanning the one its build resolved
   412 results: 31 must fix, 12 verify, 369 not applicable
   (dev-only copies, the lab's own base image)
pt sca verdict V-044 --verdict na \
   --reason "XmlUtil is never called (searched src/main)"
A package that only ships in a build tool, or in the base image the lab chose, is not reported as the application's.
DAST · OWASP ZAP, seeded from the source
pt routes --base http://api:8080
   212 routes from 31 controllers; 160 with no method-level authorization annotation
pt dast run
   sign-in: header as USER2, the app's pages signed in too · 188 requests from pt routes
   run 1: 16 alerts · coverage: 341 in-scope URLs, 171 of 212 routes reached
pt dast replay D-004
   evidence present: the alert reproduces
pt dast verdict D-004 --verdict tp --evidence logs/out/0063.txt
An API with no OpenAPI document, or pages that only call it on a click, is still scanned: the routes come from the code.
Static analysis

Decided from the code

Where a value comes from, what the sink does and whether the code ships decide each finding, not its category name. A true positive found by the rules can only be cleared by a reviewer.

Dependencies

What ships, and what reaches it

Lockfiles, manifests and the built images are scanned with the databases kept on your machine. For each advisory, Claude checks whether the vulnerable function is used, with what input, in code that ships.

Dynamic scanning

A thin scan says so

Every run reports the URLs and routes it reached. Too few, or a browser crawler that never started, marks the run low coverage, so a quiet report is never mistaken for a clean application.

Limits today: routes are read from Spring controllers and Java gateway action registries. ZAP's browser crawler is tried for single-page applications but often does not start in the sandbox; when it quits, the run is marked low coverage and the application is covered through its routes and a crawl of its pages.

Exploitable or not

Fortify finds candidates. The test proves which an attacker can reach.

A Fortify scan of a large application flags hundreds of Critical and High issues, and a team that treats each one as real spends its time on code no request can reach. cognita probe tests them against the running application in the air-gapped lab and returns what an attacker can actually exploit, with the evidence, so developers fix what matters first. The same file also guides the white-box part of a penetration test, worked after the independent test so it adds leads without setting the plan.

Fortify · tested against the running application
pt sast investigate plan --min-priority High
   41 findings in 12 sink groups, a technique and a control each
pt sast investigate next
   G-004  SQL Injection  ClaimDao.java:214  GET /claims?sort=
Claude tests it in the lab, then runs the positive control.
pt sast investigate record G-004 --outcome not-exploitable \
   --reason "sort goes through a column allow-list" \
   --control pass --control-evidence log:0231
pt sast investigate record G-007 --outcome exploitable \
   --evidence log:0244 --tested-as CUSTOMER1
   F-005 created · access needed: non-admin user
pt export grc-sast-investigation
"Not exploitable" is refused without a control that proves the test could have fired.
Fortify · leads in a penetration test
pt init meridian-claims --source ./meridian \
   --fpr Meridian_Claims.fpr --authorized-by "..."
   212 issues  ->  31 leads (4 Critical, 9 High)
pt sast scan-coverage
   claims-batch        0/118   scanned  NOT SCANNED
Claude tests the app first, then works the leads.
pt sast leads S-001
   S-001  [Critical] SQL Injection
   where   ClaimDao.java  in findClaims
pt sast pentest S-001 --result exploited --finding F-002
pt sast pentest S-004 --result false-positive \
   --note "sort field mapped through a whitelist"
Code the scan never saw is named, so a clean scan of half the application is not read as a clean application.
One test, many findings

What Fortify flagged, tested where it runs

Findings are grouped by the line of code they end at, so one test answers every finding that reaches the same sink. Each group gets one of six outcomes: exploitable, not exploitable, an effect of the lab environment, not reachable, inconclusive, or not testable by running the application.

Fix what matters

The access it takes, as tested

An exploitable group becomes a penetration test finding, with the lowest access that reproduced it and proof that anything lower was refused. That feeds the priority rating in cognita soc, so an anonymous injection outranks one that needs an administrator.

A person decides

Information, never the verdict

The package goes to cognita soc's SAST review, where each outcome sits next to the verdict for a reviewer to confirm, one by one or in bulk. A result that depends on how the lab was built is an environment issue with the setting named, and a scan that traced no request input marks nothing as gone.

In a penetration test report, a Static analysis reconciliation section gives each Critical and High lead's outcome, the findings the scan did not report, and the code it did not cover.

Transcripts on this page use 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 penetration test.