COMP-220 · Lesson 11 of 12 · 20 min

Professional ethics and conduct

▶ Video coming soon A video version of this lesson is on the way.

On the evening of Thursday, October 29, 2026, Tobias went to a local security meetup. Over coffee, a friendly stranger who worked for another consultancy asked what he was working on. Tobias said a financial institution. The stranger smiled: "The credit union, right? Everyone knows Ironwhistle has Prairiefold. Find anything good?" Tobias changed the subject, but he told Marguerite the next morning. She thanked him, checked whether anything had leaked from Ironwhistle (nothing had; Prairiefold had mentioned the engagement in a vendor list), and used the moment to talk through the ethics of the job.

Penetration testers are trusted with access, information and techniques that could do serious harm. Clients let them in because they believe testers will act with integrity. PT0-003 treats legal and ethical considerations as part of pre-engagement (objective 1.1) and reporting (objective 1.4). This lesson gathers the ethical principles that run through the whole engagement and works through the dilemmas testers actually meet.

Why ethics is part of the job, not decoration

The difference between a penetration tester and a criminal is not skill or tooling. It is authorization and conduct. A tester who stays within scope, protects what they see, reports honestly and treats people with respect is doing a legitimate and valuable job. A tester who strays from any of those, even with good intentions, damages the client, the firm and the profession. Ethics is therefore a practical discipline, built into contracts, rules of engagement and habits.

Professional codes

Several bodies publish codes that certified professionals agree to follow. CREST member companies sign a code of conduct as part of accreditation, and CREST-certified individuals are bound by it. ISC2, which awards certifications such as CISSP, requires members to follow a code whose four canons are, in summary: protect society, the common good and the infrastructure; act honorably, honestly, justly, responsibly and legally; provide diligent and competent service to principals; and advance and protect the profession. CompTIA certification holders also agree to candidate conduct rules, and serious misconduct can lead to a certification being revoked. The codes differ in wording but agree on the core principles below.

Core ethical principles and how they appeared at Prairiefold.
PrincipleWhat it means in testingPrairiefold example
AuthorizationAct only within written permissionNo testing of the vendor-hosted rewards site found during reconnaissance
ConfidentialityProtect client information during and after the engagementTobias declined to discuss the client at the meetup
IntegrityReport truthfully; never inflate, soften or omit findingsSeverity ratings checked against definitions by Ana
CompetenceTake on only work you can do safely, or get supervisionTobias tested under Dario's supervision; OT work deferred to specialists
ProportionalityUse the least intrusive method that proves the pointVPN weakness proven by version and exposure, not exploited in production
Respect for peopleTreat staff with dignity, especially in social engineeringPhishing results by department, not by name
AccountabilityRecord actions so they can be explainedTimestamped activity logs for every tester
Four numbered circles joined by arrows, each above a box. 1, is it authorized? Target, technique and time are in the signed scope. 2, is it proportionate? Least intrusive way to show the risk. 3, is the data protected? Minimum collected, encrypted, logged. 4, would I report it openly? Action is recorded and explainable to the client. A red box below reads: any no, do not proceed; ask the engagement lead and, if needed, the client.
Ironwhistle's four questions before any significant action.

Confidentiality beyond the contract

The NDA, as lesson 3 showed, sets legal obligations. Professional confidentiality goes further. Testers do not discuss clients by name in public, on social media or at conferences without permission. They do not use client examples in talks or blog posts unless the client has approved them and they are anonymized so thoroughly that the client cannot be identified. They do not keep client data after the contract says to destroy it. They are careful in public places: no reports open on a laptop on a train, no client calls in a coffee shop.

Marguerite's advice after the meetup was simple. The right answer to "who are you testing?" is always "I can't talk about clients", said pleasantly, whether or not the questioner already seems to know. Confirming a guess is a disclosure. So is a hint such as "I can't say, but you're close".

Integrity in reporting

Pressure on report content is common, and how a tester responds defines their integrity. On November 20, three days before delivery, Prairiefold's IT infrastructure lead emailed Dario asking whether the service account finding could be rated medium instead of high, since the password had been changed the same evening testers reported it, and the regulator would read the report.

Dario's response illustrates the principle. The facts would be stated exactly: the finding, its severity at the time of testing, and the date it was remediated. The severity would not change, because severity describes the risk that existed, and the scoring definitions applied to every finding equally. The status would show "remediated during testing", which was both true and to Prairiefold's credit. He copied Gwendolyn, as sponsor, so the conversation was in the open. Gwendolyn agreed immediately. Had she not, the right course would have been for Marguerite to discuss it with her directly, and if the client insisted on a misleading report, to decline to issue one in that form. Testers report what they found. Clients decide what to do about it.

Integrity also runs the other way. A tester must not inflate findings to make a test look more successful, describe theoretical issues as demonstrated, or claim coverage that did not happen. Tobias found this harder than expected: after six weeks of work, there is a temptation to make every finding sound important. Ana's consistency review caught two of his medium findings that were really low.

Competence and supervision

Testers should take on only work they can do safely. Industrial control systems, medical devices and safety-critical equipment need specialist knowledge; a tester competent with office networks can cause real harm in an OT environment. Ironwhistle's policy was that no tester worked alone on a technique they had not performed under supervision. When Copperline Logistics asked about testing its warehouse controllers, Marguerite proposed bringing in an OT specialist subcontractor, a plan lesson 12 develops.

Conflicts of interest

A conflict of interest arises when a tester's other interests could compromise, or appear to compromise, their judgment. Typical examples follow.

Common conflicts of interest and how they are handled.
SituationWhy it is a conflictUsual handling
Testing a system the firm designed or builtThe firm is grading its own workDisclose; often decline or use an independent team
Selling remediation products alongside the testAn incentive to inflate findings the product fixesDisclose; keep recommendations product-neutral
A tester has a personal relationship with client staffMay soften findings or misuse accessDisclose; assign a different tester
Testing two competitors at onceRisk of information crossing between clientsSeparate teams and strict information barriers, or decline
A tester holds shares in the clientFinancial interest in the outcomeDisclose; follow the firm's policy

PCI DSS's requirement for organizational independence of testers, covered in lesson 4, is one formal expression of this principle. Disclosure is the first step in every case: an undisclosed conflict is an ethical failure even if it never affects the work.

Respect for people in social engineering

Social engineering tests people, and people can be hurt by them. A phishing simulation that humiliates staff, uses pretexts about bereavement or medical emergencies, or exposes individuals to discipline undermines the trust and security culture it should improve. Ethical social engineering is designed with HR and the sponsor; avoids pretexts that exploit fear, grief or personal hardship; reports results in aggregate; treats clicking as a training opportunity, not a failure; and gives staff who reported the simulation the credit they deserve.

Prairiefold's simulation, run in the week of November 2 with HR's consent, followed these rules. The pretext concerned an internal IT survey rather than anything personal. Staff who clicked saw a short, friendly training page. The report highlighted the departments with the highest reporting rates as much as those with the highest click rates. The PenTest+ courses on attacks and on vulnerability discovery cover social engineering techniques and assessment design in detail.

Data, privacy and the people behind it

Testers routinely see personal information: member records, staff email, HR files. Ethical handling means viewing only what the finding requires, never browsing out of curiosity, never using information for any purpose outside the test, and protecting what is collected. Discovering personal or embarrassing material about individuals, such as private messages on a file share, is not a finding about those individuals; the finding is that the share was accessible. The report names the access path, not the people.

Third-party vulnerabilities and coordinated disclosure

Sometimes testers find a previously unknown weakness in a commercial product the client uses. During the branch test, Dario noticed that the queue management kiosk software appeared to expose an administrative function without authentication, a flaw that would affect every organization using the product. The ethical path is coordinated vulnerability disclosure: tell the client first, agree with the client how and when the vendor will be told (the client's contract with the vendor may matter), give the vendor reasonable time to fix the flaw, and only then consider publication, without revealing the client's identity. Testers must not publish, sell or exploit such findings for their own purposes. Ironwhistle reported the kiosk issue to Gwendolyn, who asked Ironwhistle to notify the vendor on Prairiefold's behalf; the vendor acknowledged the report on November 19.

Ironwhistle's own policy added one practical rule: a tester who finds a third-party flaw writes it up separately from the client report, with the client's identity removed, so that the vendor notification can be shared without exposing anything about the client's environment.

Use of AI and tools

Ethics extends to tools. Testers must know what their tools do before running them against a client; a tool downloaded from an untrusted source may itself be malicious and could compromise the client. Public AI services raise the confidentiality concerns lesson 9 described: client data must not be pasted into services that may retain or use it. And AI-generated output, whether a suggested command or a report paragraph, must be understood and verified by the tester, who remains responsible for every action and every word.

Mandatory reporting and the limits of confidentiality

Confidentiality is not absolute. Lesson 3 covered legal duties to report certain discoveries, such as material depicting child sexual abuse, which override confidentiality, and lesson 8 covered the duty to tell the client immediately about evidence of a real intrusion. Ethics adds a further principle: a tester should never be party to concealing a serious risk to the public. Such conflicts are rare, and the right response is to escalate within the firm and seek legal advice, not to act alone.

Personal conduct and risk

Testers also owe a duty to themselves and their colleagues. Physical testers stop when challenged and never run, resist or argue with police. Testers do not use their skills against systems outside work, even "just to look". Background checks, which clients like Prairiefold require, exist because trust is the foundation of the work, and a criminal record for computer misuse usually ends a testing career. Finally, testers look after one another: discovering disturbing material or being confronted during a physical test is stressful, and Ironwhistle's procedure offered a debrief and support after any such event.

Worked problem

A tempting shortcut

During the internal phase, Tobias reads the IT tools script that exposed the service account password and sees that the same account is configured on a server in the excluded core banking range. Trying the password there would take seconds and would show a serious risk. What should he do?

Show solution
  1. Apply the first question: is it authorized? The core banking range is explicitly excluded, so no.
  2. Do not log in, even to confirm. Proving the risk would mean an unauthorized access.
  3. Record what is known without touching the server: the script names the server and the account, and the password was valid on in-scope systems before it was rotated.
  4. Tell Dario, who tells Gwendolyn; recommend in the report that the password be changed everywhere and that core banking accounts be reviewed, noting the limitation that the server was not tested.

Answer: Do not test it. Report the likely risk and recommend the client check it. Authorization is not optional because a shortcut is quick or the risk seems real.

Common mistakes

  • MistakeConfirming a client's identity because the questioner already seems to know.

    InsteadDecline to discuss clients at all; confirming a guess is a disclosure.

  • MistakeLowering a finding's severity because the client asks.

    InsteadKeep severity consistent with definitions; record remediation status accurately.

  • MistakePublishing a third-party product flaw found during a test.

    InsteadFollow coordinated disclosure through the client and vendor.

  • MistakeUsing emotionally manipulative pretexts in phishing simulations.

    InsteadDesign pretexts with HR that test judgment without exploiting fear or grief.

  • MistakeTesting an out-of-scope system "just to confirm" a risk.

    InsteadReport the likely risk and let the client decide whether to authorize testing.

Summary and key terms

  • Authorization and conduct, not skill, separate testers from attackers.
  • Core principles: authorization, confidentiality, integrity, competence, proportionality, respect for people and accountability.
  • Report truthfully under pressure; severity describes the risk that existed, status records remediation.
  • Disclose and manage conflicts of interest; independence supports credible results.
  • Social engineering must respect staff dignity and be coordinated with HR.
  • Third-party flaws go through coordinated disclosure; AI and tools must be used with care and verified.
Conflict of interest
A situation in which other interests could compromise, or appear to compromise, a tester's judgment.
Coordinated vulnerability disclosure
Reporting a flaw to the affected vendor and allowing time for a fix before any publication.
Proportionality
Using the least intrusive method that adequately demonstrates a risk.
Code of ethics
A set of conduct principles that members of a profession or certification body agree to follow.
Organizational independence
Separation between testers and the people responsible for the systems being tested.
Pretext
A believable story used in social engineering to prompt a target to act.
Information barrier
Controls that prevent information passing between teams working for different clients.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. What is the correct reply when asked in public which client you are testing?

    Show answer

    That you cannot discuss clients, whether or not the questioner seems to know already.

  2. Why did Dario refuse to lower the service account finding's severity?

    Show answer

    Severity describes the risk at the time of testing and must follow the definitions; the remediation date is recorded as status instead.

  3. Name two ways to keep a phishing simulation ethical.

    Show answer

    Avoid pretexts exploiting fear or grief; report results by department; coordinate with HR; treat clicks as training opportunities.

  4. What is the first step when a tester finds an unknown flaw in a vendor's product during a test?

    Show answer

    Tell the client and agree how the vendor will be notified.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz