Before: decide why and what
- Purpose: a customer questionnaire, an audit, a launch, or simply finding bugs? It shapes depth and report format.
- Scope: list the exact hostnames, API base URLs and IP ranges in scope, and what is explicitly out.
- Test type: unauthenticated (black-box), authenticated (grey-box) or with source access (white-box).
- Output: who will read the report, and does it need an executive summary or compliance mapping?
Before: authorisation and environment
- Written authorisation from someone entitled to give it, naming targets and dates.
- If hosted on a cloud or third-party platform, check their testing policy.
- A staging environment that mirrors production, with realistic but non-sensitive data.
- Backups or a reset procedure in case testing changes data.
- Test accounts for every role, and two of each for access-control testing.
- Allowlist the tester's source IPs in WAFs and rate limiters if you want them to test the application rather than the WAF.
Before: people and communication
Name a technical contact who can answer questions quickly and an emergency contact who can stop testing. Agree how critical findings will be reported during the test rather than waiting for the final report. Tell your operations or on-call team that testing is happening so alerts are not treated as a real attack, unless detection is part of what you are testing. Agree, too, what the tester should do if they find evidence of a previous compromise: stop and report immediately is the usual answer.
During the test
- Keep the environment stable; avoid deploying to it mid-test.
- Respond to tester questions the same day.
- Fix critical findings immediately if they affect production too.
- Keep a log of anything unusual in monitoring so it can be correlated later.
After: triage, fix and retest
- Read every finding with the engineers who own the affected code.
- Agree fix deadlines by severity and track them in your normal issue tracker.
- Retest each fix rather than assuming it worked.
- Note recurring root causes and feed them into coding guidance and tests.
- Store the report securely; it describes how to attack you.
Running your first test with Pentest-Swarm
If your first pentest is a self-run one, Pentest-Swarm builds several checklist items into the tool.
- Rehearse on a bundled lab first:
pentestswarm scan --lab --lab-target juiceshop --tui. - Declare scope explicitly; it is enforced in code and fails closed:
--scope staging.example.com. - Use
--safe-modeto block destructive commands and--budgetto cap model spend. - Stop at any time with the dashboard's STOP button or
qin the TUI; a report is still written. - Prefer a reviewed report? Armur's managed service adds human review and retests after fixes.
Where it falls short
A self-run Pentest-Swarm test covers web applications and APIs and gives you findings, not independent attestation. If your first pentest is for a customer, insurer or auditor who needs a third-party report, use a human-led firm or a managed service, and check whether they require particular credentials. Pentest-Swarm does not handle the paperwork side of the checklist: authorisation, scoping agreements and communication are still yours.
Questions
What do I need before a pentest?
A clear purpose, written scope and authorisation, a stable environment, test accounts for every role, and named contacts.
Should I tell my team about the pentest?
Usually yes, so alerts are not mistaken for a real attack, unless testing detection is part of the goal.
What happens after a pentest?
Triage the findings with code owners, fix by severity, retest each fix and store the report securely.