Skip to Content
Red Teaming00-Pre-Engagement

Pre-Engagement

No testing without written authorization. Period. Verbal approval = zero legal protection. Every engagement, every time, even for repeat clients. The only difference between a pentester and a criminal is a signed piece of paper.

?

Ask yourself

  • Does the person signing the authorization actually have legal authority to authorize testing, or is it just an IT admin without standing?
  • Is the authorizing entity the legal owner of the systems, or only the operator? For subsidiaries, does the parent company need to authorize too?
  • For managed/cloud infrastructure, does the MSP or hosting provider need separate authorization on top of the client’s?
  • Does the paperwork explicitly reference the IT Act 2000 Section 43 exemption for India engagements?
  • Is your professional liability insurance active and does it cover pentest activities?
  • Sign NDA first :before any scope discussions or sharing of technical details (covers vulnerabilities, topology, credentials, PII, trade secrets; duration 2-5 years minimum, indefinite for trade secrets).
  • Obtain signed authorization letter naming you/your company, listing exact scope, permitted methods, and testing window, signed by someone with actual authority (not just the IT admin), referencing IT Act 2000 Section 43 for India engagements.
  • Sign MSA (ongoing relationship) or SOW (per engagement) with liability cap, indemnification, scope limitation, payment terms, and a data handling + destruction clause.
  • Create and sign RoE : your “get out of jail free” letter: all in-scope and out-of-scope systems listed, permitted/prohibited techniques documented, testing windows with timezone, emergency contacts and escalation.
  • Verify third-party/cloud authorization :AWS/Azure/GCP provider pentest policy and notification forms, Indian hosting providers contacted directly, CDN/WAF providers (Cloudflare, Akamai) notified if applicable.
  • Review professional liability insurance confirm coverage for pentest activities before the window opens.

Phase 2: Scope Definition

?

Ask yourself

  • Is the scope actually complete, or are there assets the client forgot (subdomains, APIs, mobile backends, staging environments)?
  • Are third-party integrations (payment gateways, SSO, CDNs) in scope, and do they need separate authorization?
  • Is pivoting into internal systems after initial compromise permitted, or is the engagement limited to the perimeter?
  • Which regulated data (HIPAA, PCI DSS, DPDP Act, RBI) sits inside the scope, and does that change what you are allowed to touch?
  • What is the pre-agreed workflow when a new asset is discovered mid-engagement?

frogy2.0  like tools can be used to do a quick external passive reson based on public sources to get a good idea of the scope.

  • Complete scoping questionnaire with the client (network, web, AD, cloud, social engineering, compliance).
  • Create scoping document what, how, when, limits.
  • Document all in-scope systems IPs, CIDR ranges, domains, subdomains, apps, APIs.
  • Document all off-limits systems critical infra, medical devices, ICS/SCADA, prod databases, backup/DR systems.
  • Define testing type black box / grey box / white box.
  • Define testing windows dates, hours, timezone, maintenance windows.
  • Clarify permitted techniques social engineering, physical, DoS, account creation/data modification, data exfiltration to prove impact.
  • Identify sensitive/regulated systems in scope HIPAA, PCI DSS, GDPR, DPDP Act, RBI-regulated.
  • Define deliverables and retesting terms report format, detail level, executive summary, retest included or billed separately.
  • Define scope-change workflow who authorizes additions (same authority level as original), written addendum required, timeline/budget impact, updated RoE if risk profile changes.

Phase 3: Communication & Emergency Setup

?

Ask yourself

  • Who exactly do you call if you cause a service disruption, and how fast are they reachable?
  • Who must be notified for critical/emergency findings (RCE, active breach, exposed PII), and on what channel?
  • What is the halt trigger the condition under which you stop testing immediately?
  • If you find evidence of a prior breach, does the client have a CERT-In 6-hour reporting obligation, and does your NDA conflict with it?
  • What reporting cadence does the client expect (daily, weekly, end-only)?
  • Obtain contact list technical POC, project manager, legal, emergency/on-call.
  • Define escalation procedures who to call on disruption, who to notify for critical/emergency findings, and when to halt testing immediately.
  • Establish communication channels email (routine), phone/Signal (urgent), ticketing system.
  • Create incident response plan what happens if testing triggers a real incident.
  • Agree on reporting cadence daily updates, weekly, or only at end.

Phase 4: Deconfliction & Allowlisting

This prevents your testing from triggering IR alerts, SOC escalations, or IP bans. Share these details with the client’s security team before testing begins. Without deconfliction, your pentest looks exactly like a real attack to the blue team.

?

Ask yourself

  • Will the SOC actually know you are testing, or is this a blind/red-team exercise where they are intentionally not notified?
  • If the SOC is outsourced (MSSP), does the MSSP know? They will block your IPs and escalate if left out of the loop.
  • For a blind test, who is the single deconfliction contact that can confirm you are authorized if things go sideways?
  • For red team work, is there a “safe word” or emergency deconfliction procedure that immediately identifies you as the authorized tester if confronted?
  • Provide source IP addresses all IPs your traffic originates from (VPN egress, VPS, home IP if applicable).
  • Provide VPN egress ranges full CIDR if using a testing VPN.
  • Provide callback/C2 domains any domains payloads will beacon to (if C2 is in scope).
  • Provide phishing domains and mail sender addresses sending domains, lookalikes, reply-to and from-addresses (if social engineering is in scope).
  • Provide phone numbers numbers used for vishing or callback social engineering.
  • Provide test user agents custom user-agent strings so the SOC can filter your traffic.
  • Provide test user accounts usernames/emails created or provided for testing.
  • Provide report recipient list for access control on sensitive findings.
  • Provide scanning schedule when heavy scanning will occur.
  • Get written acknowledgment from the SOC lead on the deconfliction sheet.

Phase 5: Environment & Logistics

?

Ask yourself

  • Is this a clean workspace with zero residual data from previous engagements (cross-contamination is catastrophic)?
  • Are you routing traffic through your own attributable infrastructure or leaking straight from your ISP?
  • Is client data encrypted at rest and in transit, and access-controlled to only NDA-named team members?
  • Can you prove exactly what you did and when if something breaks during the window?
  • Does the client have recent, tested backups and staff on hand to restore in-scope systems if testing causes disruption?
  • Set up clean testing VM/workspace no residual data from previous engagements; snapshot before starting.
  • Verify all tools are licensed and updated.
  • Confirm client has recent, tested backups of all in-scope systems and staff available to restore during the window.
  • Set up encrypted storage for engagement data (LUKS, VeraCrypt, BitLocker).
  • Set up activity logging log all testing with timestamps for legal protection.
  • Prepare report template start the structure early and fill findings as you go.

Phase 6: Final Verification

?

Ask yourself

  • Are every one of NDA, authorization, MSA/SOW, and RoE signed and in your possession not “in progress”?
  • Are all emergency contacts confirmed reachable today, not just listed on paper?
  • Is the testing window confirmed in writing by the client?
  • Do you have an explicit written “you are clear to start” from an authorized person before the first packet leaves your box?
  • NDA signed
  • Authorization letter signed (correct authority)
  • MSA/SOW signed
  • RoE signed
  • Contacts confirmed reachable
  • Testing window confirmed in writing
  • Deconfliction sheet acknowledged by SOC
  • Written “clear to start” received
  • Confirm all documents signed
  • Confirm all contacts reachable.
  • Confirm testing window with the client.
  • Get explicit written approval to begin “You are clear to start testing.”
  • Begin testing

Reference

Goals & Objectives of a Penetration Test

Before scoping, pin down why the client wants the test. The stated goal shapes scope, methodology, deliverables, and how you rank findings. A compliance checkbox engagement and a “can an attacker reach our crown jewels” engagement look completely different in practice.

?

Ask the client

  • What is the client actually trying to achieve ? a clean audit certificate, validated defenses, or a realistic breach simulation?
  • What regulatory or compliance requirement (if any) is driving this engagement?
  • Is the priority finding vulnerabilities, testing detection/response, or quantifying business impact?
  • What does “success” look like to the person paying for the test?

Primary Goal Categories

CategoryFocus
Security Posture EvaluationAssess the organization’s overall cybersecurity maturity
Defensive Measures TestingValidate whether existing security controls actually work
Risk AssessmentEvaluate the potential operational and financial impact of a breach

Detailed Objectives

ObjectiveWhat It Means
Identify Security WeaknessesUncover misconfigurations, software flaws, design weaknesses, and human vulnerabilities
Validate Security ControlsAttempt to bypass security mechanisms to verify they work as intended
Test Detection & ResponseDetermine if the organization can detect and respond to security incidents
Assess Real-World ImpactSimulate attacks to understand potential data loss, system compromise, or business disruption
Prioritize RemediationHelp the organization allocate resources to fix the most critical issues first
Compliance & Due DiligenceSatisfy regulatory requirements (PCI DSS, HIPAA, SOC 2, RBI VAPT, etc.)
Enhance Security AwarenessReveal risks that aren’t apparent through other means
Verify Patch ManagementConfirm patches and updates are properly applied and effective
Test New TechnologiesEnsure new systems are securely configured before production deployment
Establish BaselineCreate a measurable starting point for tracking security improvements over time

Every penetration test is technically a crime without proper authorization. The difference between a pentester and an attacker is a signed piece of paper. This section is the most important in the entire vault get it wrong and no technical skill will save you.

Never test without written authorization. Verbal approval, Slack messages, or “my manager said it’s fine” are not legal protection. Get a signed document on company letterhead from someone with authority.

MSA vs SOW

AspectMSASOW
PurposeOverall business relationship termsProject-specific engagement details
ScopeBroad: payment, confidentiality, liability, IPNarrow: objectives, scope, deliverables, timeline
Use CaseOngoing / multiple engagementsEach new project
DurationLong-term (1-3 years typical)Short-term, project duration
FlexibilityConsistent across engagementsTailored per engagement
AuthorizationFramework for servicesExplicit permission for specific pentest

For repeat clients: Sign an MSA once, then issue a new SOW for each engagement. This saves time on legal review and keeps the per-engagement paperwork light.

SOW Critical Clauses

ClauseWhy It MattersWhat to Include
Scope limitationProtects against scope creepExact systems, methods, timeline
Liability capLimits your financial exposureTypically 1x-2x contract value
IndemnificationClient covers you for authorized actions”Client shall indemnify tester for all claims arising from authorized testing”
Payment termsCash flow protection50% advance + 50% on report delivery
IP ownershipClarity on deliverablesReports -> client. Tools, scripts, methodology -> yours
Limitation of findingsManages expectations”Results are point-in-time and do not guarantee security”
Data handlingLegal complianceEncryption requirements, retention period, destruction method
RetestingAvoid free work1 retest included or billed separately state it explicitly
TerminationExit strategyEither party can terminate with N days notice, payment for work completed
?

Is your SOW actually protecting you?

  • Does it have a liability cap? Without one, you’re exposed to unlimited claims.
  • Does the indemnification clause cover you if authorized testing causes unexpected downtime?
  • Is “scope” defined precisely enough that the client can’t claim you should have tested more?
  • What happens if the client doesn’t pay? Is there a dispute resolution clause?

Rules of Engagement (RoE) Deep Dive

The RoE is the operational contract between you and the client. It defines what you can do, when, and how.

ElementDescriptionExample
In-scope systemsExact IPs, domains, apps10.10.10.0/24, *.target.com, app.target.com
Off-limits systemsNever touch theseProduction DB, medical devices, payment processing
Permitted techniquesWhat methods are allowedNetwork scanning, web app testing, credential stuffing
Prohibited actionsHard noDoS, physical access, real data exfiltration
Testing windowsWhen you can testMon-Fri 22:00-06:00 IST, weekends 24/7
ContactsNames, roles, phones, emailsTechnical POC, PM, emergency, legal
CommunicationHow to reportEmail for updates, phone for emergencies
Evidence handlingHow to store/transmit findingsAES-256 encrypted, secure channel only
Critical finding protocolImmediate notification rulesRCE/active breach -> phone call within 1 hour
DisclaimersLiability protectionPoint-in-time assessment, not a guarantee
?

What if the RoE is too restrictive?

  • Does the testing window give you enough time? A 4-hour nightly window for a full network pentest is unrealistic.
  • Are the prohibited actions reasonable? If you can’t test for SQLi on a web app engagement, what’s the point?
  • Can you pivot to internal systems after initial compromise, or does the RoE limit you to the DMZ?
  • Push back on unrealistic constraints document the impact on test quality in the SOW.

NDA & What It Protects

The NDA is signed first before any scope discussions, architecture details, or credentials are shared.

Protected InformationExamples
Security weaknessesVulnerabilities, misconfigurations, exploit paths
Company dataTrade secrets, internal processes, business logic
PIIEmployee data, customer records, HR files
Technical detailsNetwork topology, credentials, API keys, configs
Test resultsReports, findings, remediation status

Key NDA clauses:

  • Scope of confidentiality what’s covered (be broad).
  • Duration 2-5 years minimum; indefinite for trade secrets.
  • Permitted disclosures your team members involved in the test.
  • Data destruction timeline and method after engagement ends.
  • Carve-outs publicly available info, independently discovered, legally compelled disclosure.
  • Breach consequences financial penalties, injunctive relief.

After NDA is signed, safe to discuss: systems in scope, network architecture, past security incidents and findings, critical business processes, test credentials, VPN access, and documentation.

?

Does the NDA create conflicts?

  • If you discover an active breach, does the NDA prevent you from reporting to authorities?
  • If the client is violating regulations (storing unencrypted PII), does confidentiality override your ethical obligations?
  • Clarify these edge cases upfront add carve-outs for legally compelled disclosures and regulatory reporting obligations.

Agreement Structure & What Gets Signed, Grouped

The documents above serve three distinct purposes. Grouping them this way makes it easy to confirm nothing is missing before testing starts.

GroupDocumentsPurpose
LegalNDA, Permission-to-Test / authorization letter, Contact informationConfidentiality, explicit signed authorization, and all stakeholder + emergency contacts
Scope & RulesScoping questionnaire + scoping document, RoEDefines what gets tested and how testing is conducted, including boundaries and methods
ContractTimeline, Responsibilities, DeliverablesPhases and deadlines (with buffer), client-vs-tester duties, and report format/detail/submission terms

Third-Party & Cloud Authorization

Cloud-hosted infrastructure requires separate consideration. Testing assets on AWS/Azure/GCP without understanding their policies can get your IP banned or trigger legal action from the provider even if you have client authorization.

Client authorization is not cloud provider authorization. The client can authorize you to test their application, but the cloud provider owns the underlying infrastructure. Always check the provider’s pentest policy separately.

AWS Pentest Policy

AWS permits testing without prior approval on these services only: EC2, WAF, NAT Gateways, Elastic Load Balancers, RDS, Aurora, CloudFront, API Gateway, AppSync, Lambda, Lambda Edge, Lightsail, Elastic Beanstalk, ECS, Fargate, OpenSearch, FSx, Transit Gateway, and Amazon Bedrock AgentCore.

Prohibited activities (hard no, regardless of authorization):

  • DNS zone walking, hijacking, or pharming via Route 53.
  • DoS / DDoS attacks (a separate DDoS simulation policy exists requires approved partners).
  • Port flooding, protocol flooding, request flooding (login/API).

Report security issues found during testing to aws-security@amazon.com.

Azure Pentest Policy

As of June 2017, Microsoft no longer requires pre-approval to pentest Azure-hosted resources.

  • Permitted without approval: your own Azure-hosted VMs, App Service apps, Functions, API endpoints, and websites; OWASP Top 10 testing, DAST, fuzz testing, and port scanning on your own endpoints.
  • Prohibited: any form of DoS / DDoS attack (use Microsoft-approved simulation partners: BreakingPoint Cloud, Red Button, RedWolf); scanning or testing resources you don’t own or aren’t authorized to test.

Azure requires compliance with the Microsoft Cloud Unified Penetration Testing Rules of Engagement read these before testing. No approval form needed, but the RoE is binding.

GCP Pentest Policy

No prior approval required. Follow Google Cloud’s Acceptable Use Policy. Prohibited: DoS, disrupting other tenants, and testing infrastructure you don’t own.

Indian Hosting Providers

Always contact the provider directly policies vary widely and are often undocumented. Get written approval before testing; some providers will block your IP on automated scan detection.

Operating in India unauthorized access to computer systems is a criminal offense under the Information Technology Act, 2000. Written authorization is not optional it’s the difference between a pentest engagement and a criminal charge.

IT Act 2000 Key Sections for Pentesters

SectionOffenseNaturePenalty
Section 43Unauthorized access, downloading data, introducing virus, causing damageCivilCompensation up to Rs 5 crore
Section 43ACorporate failure to protect sensitive personal dataCivilCompensation to affected persons
Section 65Tampering with computer source documentsCriminalUp to 3 years + Rs 2 lakh fine
Section 66Computer-related offenses (hacking with criminal intent)CriminalUp to 3 years + Rs 5 lakh fine
Section 66BReceiving stolen computer resource or dataCriminalUp to 3 years + Rs 1 lakh fine
Section 66CIdentity theft (using another person’s credentials)CriminalUp to 3 years + Rs 1 lakh fine
Section 66FCyber terrorismCriminalUp to life imprisonment
Section 69Government power to intercept, monitor, decryptRegulatoryN/A
Section 72Breach of confidentiality and privacyCriminalUp to 2 years + Rs 1 lakh fine

Section 43 vs Section 66: Section 43 is civil (compensation). Section 66 is criminal (imprisonment). Unauthorized pentesting without written authorization can attract both simultaneously. Your authorization letter is your Section 43 exemption reference it explicitly.

?

Does your authorization actually protect you under Indian law?

  • Does the authorization letter explicitly reference IT Act 2000 Section 43?
  • Is the authorizing entity the legal owner of the systems, or just the operator?
  • If you’re testing a subsidiary’s systems, does the parent company need to authorize separately?
  • If your testing triggers Section 66C (using found credentials to pivot), does your RoE explicitly permit credential reuse?

CERT-In Compliance

  • Mandatory incident reporting under CERT-In Directions (April 2022), organizations must report cybersecurity incidents within 6 hours of detection.
  • Reportable incidents: unauthorized access, data breaches, ransomware, website defacement, malicious mobile apps, attacks on servers/infrastructure.
  • If your pentest discovers evidence of a prior breach, the client may have a legal obligation to report.
  • If your pentest triggers the client’s incident response team, clarify in advance that authorized testing activity is not a reportable incident.
  • CERT-In can request information from any service provider about any cybersecurity incident. Report at cert-in.org.in .

Add a clause in your RoE stating that authorized testing activities are excluded from CERT-In incident reporting triggers. This prevents the client’s SOC from filing a report about your own testing.

DPDP Act 2023 & DPDP Rules 2025

Two instruments, phased rollout. The DPDP Act 2023 (assented 11 August 2023) is the parent legislation. The DPDP Rules 2025 (notified 13 November 2025 by MeitY and published in the Gazette on 14 November 2025) provide operational requirements consent mechanisms, breach reporting procedures, record-keeping standards, and Data Protection Board composition. Provisions commence in phases:

  • 13 November 2025 Data Protection Board of India established, procedural provisions in effect.
  • 13 November 2026 Consent Manager registration and related obligations take effect.
  • 13 May 2027 Core compliance duties take effect, including notice, consent, security safeguards, breach intimation, Significant Data Fiduciary obligations, and Data Principal rights.

Verify which provisions are currently enforceable before relying on or advising about specific obligations. The legal landscape is actively evolving. (last verified: 2026-07)

AspectDPDP Act 2023DPDP Rules 2025 (added detail)Impact on Pentesting
Data Fiduciary obligationsClient must ensure personal data is protectedClear privacy notices specifying purpose, categories, retentionClient is liable for PII you access during testing
ConsentProcessing requires lawful basisOperational consent mechanisms, informed + unambiguous consentYour authorization letter + SOW = lawful basis for testing
Data breach notificationNotify Data Protection Board + affected individualsReporting timelines, nature of breach, mitigation stepsIf you find an existing breach, client must report per Rules timeline
Cross-border transferPersonal data only to notified countriesTransfer mechanisms and permissible jurisdictionsIf testing from outside India, ensure compliance
Data minimizationCollect only what’s necessaryRecord-keeping standards for processing activitiesDon’t exfiltrate real PII to prove a point use screenshots
Children’s dataSpecial protections requiredEnhanced safeguards + consent for minors’ dataIf testing systems with minors’ data, extra care required
PenaltiesUp to Rs 250 crore for significant non-compliance-Both client and tester can be liable

Your NDA and SOW should explicitly reference both the IT Act 2000 and the DPDP Act 2023 / Rules 2025. Include clauses for lawful basis (authorization), data minimization during testing (don’t dump entire databases), data handling/destruction post-engagement, breach notification procedures, and record-keeping of what personal data was accessed.

Indian Industry-Specific Compliance

RegulatorSectorPentest Requirement
RBIBanking, NBFCs, payment systemsMandatory VAPT at least annually + after major infra changes
SEBISecurities, stock exchanges, listed entitiesCybersecurity framework requires regular security assessments
IRDAIInsuranceInformation security audits including penetration testing
TRAITelecomData protection and security audit requirements
MeitYGovernment ITGuidelines for securing government websites and applications
NPCIUPI/payment infrastructureRegular security assessments for all participants

RBI mandates VAPT at least once a year, and after any major infrastructure change. Many Indian enterprises follow this annual cycle plan engagements accordingly. RBI-regulated engagements may require reports in specific formats.

?

Is this a compliance-driven engagement?

  • If yes, which regulator’s requirements are driving it? The report format and testing scope may need to match their framework.
  • Does the client need the report for an audit? Ensure your methodology aligns with the auditor’s expectations.
  • Are there specific controls the regulator mandates testing? (e.g., RBI requires testing of internet banking, mobile banking, and SWIFT systems.)

Test Account Lifecycle

PhaseAction
ProvisioningClient creates test accounts with agreed privilege levels. Document username, initial password, MFA status, permissions
MFA handlingAgree on the method (TOTP? SMS? hardware key?) and who controls it. If testing MFA bypass, clarify scope
Password reset authorityCan you reset test accounts? Discovered/compromised accounts? Usually: test accounts yes, real accounts no
MonitoringClient may want to monitor test account activity separately from real users
RevocationAll test accounts disabled/deleted within 24 hours of engagement end. Get written confirmation
Credential vaultingAll credentials stored in encrypted vault (KeePassXC, Bitwarden). Never plaintext, never in the report, never in Slack/email

Proof-of-Impact Boundaries

RuleDetails
Maximum recordsAgree on the max records to extract as proof (e.g., 5-10 rows). Never dump entire tables/databases
Screenshot rulesRedact PII before including in reports. Blur names, emails, phone numbers, account numbers. Show structure, not content
Hashing evidenceHash (SHA-256) sensitive data used as proof. Include the hash in the report, not the plaintext
No real PII exfiltrationProve access with row counts, column names, table structure, 2-3 redacted sample rows
Credential evidenceIf you crack hashes, report the hash and that it was cracked not the plaintext (“cracked in X time using Y method”)
Data in transitProof-of-concept data must be encrypted in transit. Never send raw evidence over unencrypted channels
RetentionAll evidence follows the same retention + destruction schedule as the rest of the engagement data per NDA
?

How much proof is enough?

  • You found a SQL injection into a 10M-row customer database. You do NOT need to dump it. A screenshot of SELECT COUNT(*) FROM customers returning 10,247,831 plus a 3-row sample with redacted PII is sufficient.
  • You cracked the domain admin hash. The report says “Domain admin NTLM hash cracked in 4 minutes using hashcat with rockyou.txt.” That’s proof the plaintext is not in the report.
  • You found credentials in a config file. Screenshot with the password partially redacted (admin:P@ss****). Full credentials go in the encrypted vault, not the report body.

Pentest Process

This is a brief orientation of the full pentest lifecycle. Detailed methodology for each phase lives in dedicated notes throughout the vault.

Reporting What the Deliverable Looks Like

Report SectionAudienceContent
Executive SummaryC-suite, managementBusiness risk in plain language, overall risk rating, top 3-5 findings
Technical FindingsIT / security teamEach vuln: description, severity, evidence, reproduction steps
Remediation StepsEngineers / developersSpecific fix for each finding, prioritized by risk
MethodologyAuditors / complianceTesting approach, tools used, scope covered
AppendicesReferenceFull tool output, scan results, raw evidence

Write the report as you go. Every time you compromise a host, stop and document the finding. Waiting until the end means forgotten details, weaker evidence, and a worse report. The report is half the engagement value.

?

Does the report meet the client’s actual needs?

  • Is this for a compliance audit? Match the report format to the regulator’s expectations.
  • Does the client need CVSS scores? Some compliance frameworks require them.
  • Who will read this? A CISO needs different language than a developer.

Communication & Emergency Procedures

SituationActionChannel
Routine status updateEmail summaryEmail
Found critical vulnerability (RCE, SQLi with data access, auth bypass)Notify within 1 hourPhone + encrypted email
Caused service disruptionHalt testing immediately, notifyPhone call no delay
Found evidence of active breach / prior compromiseNotify immediately, documentPhone call to emergency contact
Unclear if system is in scopeStop, ask, get written confirmationEmail (paper trail)
Testing completeDeliver report via secure channelEncrypted email or secure portal
?

When in doubt, what do you do?

If you discover unexpected systems, ambiguous scope, or anything that makes you uncomfortable stop and ask. A 10-minute pause to confirm scope costs nothing. Testing an out-of-scope system costs everything.

Testing Environment & OPSEC

RequirementWhyHow
Dedicated testing VMNo cross-contamination between engagementsFresh VM per engagement, snapshot before starting
Encrypted storageClient data protection, legal complianceLUKS (Linux), VeraCrypt, BitLocker
Activity loggingLegal protection prove what you did and whenScript sessions, Burp logs, terminal history with timestamps
VPN / dedicated infrastructureAttribute traffic to your testing, not your ISPRoute through your own VPS/VPN, document source IPs
Tool licensingLegal and professional complianceBurp Suite Pro, Nessus, Cobalt Strike all properly licensed
Data destructionNDA complianceSecure wipe all client data after retention period, document destruction

Cross-contamination is catastrophic. Including exploit code, credentials, or network architecture from Client A in Client B’s report can identify the original client, destroy trust, and create legal liability. Fresh workspace, every time.

?

Can you account for every action you took during the engagement?

  • If the client’s system goes down at 3 AM during your window, your timestamped logs prove exactly what you were doing.
  • If a dispute arises about what was tested, your activity logs are your defense.
  • Log everything: commands run, tools used, timestamps, source IPs.

Backup & Recovery

Before testing begins, confirm:

  • Client has recent, tested backups of all in-scope systems.
  • Recovery procedures are documented and accessible.
  • Client has staff available to restore systems if needed during the testing window.
  • You have discussed the risk of accidental service disruption.

Pentesting shouldn’t cause damage but it can. A misconfigured exploit, an aggressive scan against a fragile legacy system, or a privilege escalation that crashes a service. Having recovery options isn’t paranoia, it’s professionalism.

Confidentiality & Data Handling

AspectRequirement
StorageEncrypted at rest (AES-256 minimum), access-controlled
TransmissionEncrypted channels only (GPG email, SFTP, encrypted portal)
RetentionPer NDA typically 30-90 days after report delivery
DestructionSecure wipe (not just delete), document the destruction
AccessOnly team members named in the NDA
Regulated dataFollow industry-specific requirements (HIPAA, PCI DSS, DPDP Act, RBI VAPT)

India / DPDP Act: Any personal data encountered during testing must be handled per the Act’s provisions. If testing uncovers a data breach, the client may need to report to the Data Protection Board of India. Your NDA should include DPDP Act compliance clauses.

Professional Liability & Insurance

TypeCoversWhy You Need It
Professional Liability / E&OClaims from testing (accidental damage, missed vulnerability)Client sues because your test caused an outage
Cyber LiabilityData breach liability, incident response costsYou accidentally expose client data
General LiabilityBodily injury, property damage during on-site testingPhysical testing goes wrong

India: Companies like ICICI Lombard, Bajaj Allianz, and HDFC Ergo offer professional indemnity policies. Starting coverage of Rs 25-50 lakh is reasonable. Some MNC clients require proof of insurance before signing contracts.

Methodologies & Frameworks

FrameworkFocusBest For
PTES7-phase pentest standardGeneral penetration testing most common
OWASP Testing GuideWeb application securityWeb app assessments
NIST SP 800-115Formal security assessmentGovernment / NIST-aligned orgs
MITRE ATT&CKAdversary tactics and techniquesRed teaming, realistic threat simulation
OSSTMMSecurity testing methodologyComprehensive security audits

Most professional pentesters don’t strictly follow one framework they combine elements from multiple. PTES for structure, OWASP for web testing methodology, MITRE ATT&CK for realistic attack simulation. Document which framework(s) you’re using in the SOW.

?

Which methodology fits this engagement?

  • Compliance-driven (RBI/SEBI)? Use PTES or NIST auditors recognize these.
  • Web application focused? OWASP Testing Guide is the standard.
  • Red team / adversary simulation? MITRE ATT&CK maps directly to real threat actor behavior.
  • Does the client require a specific framework? Some RFPs mandate PTES or OWASP explicitly.

PTES Seven Phases

  1. Pre-engagement Interactions
  2. Intelligence Gathering
  3. Threat Modeling
  4. Vulnerability Analysis
  5. Exploitation
  6. Post-Exploitation
  7. Reporting

OWASP Testing Guide Core Testing Phases

  1. Information Gathering
  2. Configuration and Deployment Management Testing
  3. Identity Management Testing
  4. Authentication Testing

OWASP is continuously updated by the community to address emerging threats and contains distinct testing procedures with practical examples for nearly every web vulnerability. Use it as the backbone for web-app engagements.

Choosing the Approach

Engagement TypeRecommended Framework(s)
Black-box network testPTES + MITRE ATT&CK
Web application testOWASP Testing Guide
Government / complianceNIST SP 800-115
Red team assessmentMITRE ATT&CK
General pentestPTES (most common)

This section covers the business, legal, and operational aspects of freelance pentesting with India-specific context.

Business Setup (India)

StructureBest ForRegistrationLiability
Sole ProprietorshipStarting out, low overheadPAN + GST registrationUnlimited personal liability
LLPSmall team, liability protectionMCA registration, LLP agreementLimited to contribution
Pvt Ltd CompanyScaling, investors, large contractsMCA incorporationLimited to shareholding

Starting out? Sole proprietorship is simplest just PAN card and GST registration. Move to LLP when you want liability protection or bring on partners. Pvt Ltd when you’re scaling or need to bid on large government contracts.

?

Does your business structure protect you?

  • As a sole proprietor, your personal assets are at risk if a client sues. Is the engagement value worth that risk?
  • An LLP provides liability protection consider it once you’re doing engagements over Rs 5L.
  • For government tenders (GeM portal), some require a registered company/LLP.

Freelancer Engagement Documents

Every engagement, minimum:

  1. Proposal / Quote scope overview, pricing, timeline, methodology.
  2. NDA before sharing any details.
  3. SOW / Contract detailed scope, deliverables, payment terms, liability cap, indemnification.
  4. RoE authorized testing boundaries.
  5. Authorization letter explicit written permission from an authorized person.
  6. Invoice GST-compliant with SAC code 998314.

Quick Reference Document Timeline

Before NDAAfter NDABefore Testing
General discussions onlyDetailed scope talksSigned RoE + Authorization
No sensitive details sharedCredentials, architecture, past findingsScoping document finalized
High-level pricingDetailed SOW with clausesContact list + incident response plan
Written approval to begin

#PreEngagement #Legal #Scoping #RulesOfEngagement #Authorization #Freelance #India #Compliance #NDA #ClientCommunication

Last updated on