Table of Contents

Reach SOC 2 Compliance in 6 Weeks or Less.

  /

  / SOC 2 Penetration Testing Requirements: What Auditors Demand

SOC 2 Penetration Testing Requirements: What Auditors Demand

The AICPA never wrote the words penetration test required into SOC 2. Yet a service organization that walks into a Type II audit without one is almost guaranteed to leave with findings, follow-up questions, or a delayed report. That gap, between what the standard technically demands and what auditors operationally expect, is where most companies trip.

This article breaks down the real SOC 2 penetration testing requirements: where they sit in the Trust Services Criteria, what auditors look for during Type I and Type II engagements, how often you should test, and what a good pen test report needs to contain to satisfy your auditor without inflating your budget.

Understanding SOC 2 and Its Security Expectations

What Is SOC 2?

SOC 2 is an attestation framework developed by the American Institute of Certified Public Accountants (AICPA) for service organizations that handle customer data. Unlike a certification, SOC 2 is an opinion: a licensed CPA firm reviews your security controls and issues a report stating whether those controls are designed (Type I) or operating (Type II) effectively. SOC 2 reports are read by enterprise procurement teams, security reviewers, and risk officers. Most B2B SaaS contracts in 2026 require one before signing.

What Controls Does SOC 2 Require?

Rather than dictating specific technologies, SOC 2 requires that you design and operate controls that demonstrably meet each criterion under the Trust Services Criteria (TSC). That gives you flexibility, and it also gives auditors latitude to ask hard questions.

Reach SOC 2 Compliance in 6 Weeks or Less

Schedule Your Free SOC 2 Assessment Today

Does SOC 2 Require Penetration Testing?

The Official SOC 2 Position on Penetration Testing

The phrase penetration test appears in the AICPA’s 2017 Trust Services Criteria publication (with 2022 revisions) inside a single Point of Focus under CC7.1, the Common Criterion that requires entities to use detection and monitoring procedures to identify changes to configurations that introduce new vulnerabilities and susceptibilities to newly discovered vulnerabilities. The Point of Focus suggests management uses a variety of ongoing and separate risk and control evaluations to determine whether controls function. Penetration testing is named as one option.

That is the entire textual basis. There is no clause that mandates an annual external pentest, no specification of scope, no required methodology.

Short Answer: There Are No Mandatory SOC 2 Pen Test Requirements

You can technically obtain a SOC 2 report without a penetration test, provided you can show your auditor that you use alternative evaluations to satisfy CC4.1 (ongoing monitoring) and CC7.1 (vulnerability identification). In practice, almost nobody does this successfully.

Long Answer: You Still Need SOC 2 Penetration Testing

Auditors view penetration testing as the strongest available evidence that your controls work against a determined adversary, not just on paper. CC4.1 asks the entity to perform ongoing monitoring to ascertain whether internal controls are present and functioning; a pen test is the most direct way to evaluate that. CC6.1 asks whether logical access controls can be bypassed; a pen test answers that question directly. CC7.1 ties this together by requiring you to detect newly introduced vulnerabilities.

If you skip pen testing, you carry the burden of proving your alternative evidence is at least as good. That is a steeper hill than most organizations realize.

What Auditors Expect During Type I and Type II Engagements

A SOC 2 Type I report assesses control design at a single point in time. A Type II report assesses operating effectiveness over a defined audit period, typically six to twelve months. Both increasingly assume a recent penetration test exists. For Type II especially, auditors expect the test to fall within the audit window, with documented remediation of any critical or high findings before the period closes.

Auditors rarely refuse a Type II report over a missing pentest outright, but they will issue a finding or qualified opinion if they cannot validate CC4.1 evidence. That qualification will be read by every customer reviewing your report. Most CISOs would rather budget $15,000 for a pentest than try to explain a qualified opinion to a procurement team.

What Are the Actual SOC 2 Penetration Testing Requirements?

Alignment with Trust Services Criteria

A pen test that supports a SOC 2 audit must map its findings to specific criteria. Most reputable pentest firms now produce a Trust Services Criteria mapping appendix that ties identified vulnerabilities back to CC4.1, CC6.1, CC7.1, and where relevant CC7.2 through CC7.4. Without that mapping, your auditor has to do the interpretive work themselves, which typically means a follow-up request and a slower report.

Scope Definition Requirements

Scope should match your SOC 2 system boundary, not your entire infrastructure. If your audit covers a single SaaS product, its API, and its AWS account, that is what should be tested. Auditors look for evidence that the pen test scope was derived from the system description in your SOC 2 report. A mismatch between the two is one of the most common causes of fieldwork delays.

Testing Frequency and Timing Requirements

SOC 2 does not specify a frequency. Annual testing has become the de facto standard, with additional testing after material changes to architecture, authentication, or hosting. For organizations on continuous deployment, some auditors now accept a combination of annual deep-dive testing and continuous automated assessment as sufficient coverage, but this should be confirmed with your auditor before you rely on it.

Remediation Evidence Requirements

Findings without remediation are findings against you. Auditors expect documented remediation plans for every critical and high-severity issue, with closed tickets, retest results, or compensating controls recorded before the audit period ends. A finding sitting open in a backlog at audit time is treated almost identically to a finding that was never addressed.

Reach SOC 2 Compliance in 6 Weeks or Less

Schedule Your Free SOC 2 Assessment Today

Penetration Testing vs. Vulnerability Scans for SOC 2

Both belong in your control set, but they answer fundamentally different questions. Vulnerability scanning is automated and broad, it identifies known CVEs and misconfigurations across your environment quickly and consistently. Penetration testing is manual and adversarial, it simulates what a real attacker would do with the access and information they can obtain. CC7.1 explicitly references both, and your auditor will want to see evidence of each.

Why Automated Scans Are Not Sufficient for SOC 2 Compliance

Scanners cannot reason about business logic. They will not find a privilege escalation chain through a multi-tenant API, an authorization flaw that lets one customer view another customer’s data, or an authentication bypass via a forgotten admin endpoint. SOC 2 cares about whether your controls actually protect customer data, and those classes of failure only surface under manual penetration testing. Submitting scanner output as your primary evidence under CC4.1 is one of the fastest ways to generate a finding.

When to Use Vulnerability Scanning vs. Penetration Testing

Use scanning continuously as ongoing evidence of monitoring. Use penetration testing periodically as deep validation. They are complements, not substitutes, and your SOC 2 control narrative should describe them as such.

Required Types of Penetration Testing for SOC 2

In-scope assets generally fall into five categories, each requiring a distinct testing approach. External network testing simulates an attacker on the public internet probing your perimeter, open ports, exposed services, and edge device vulnerabilities. Internal network testing assumes a foothold has already been gained and evaluates lateral movement paths, network segmentation, and privilege escalation opportunities. Web application testing typically follows the OWASP Web Security Testing Guide and targets injection, authentication, and session management flaws. API testing has become its own discipline as most SaaS products now expose core business logic through REST and GraphQL endpoints, making it a critical surface area for SOC 2 evidence. Cloud infrastructure testing for AWS, Azure, and GCP focuses on misconfigured IAM policies, exposed storage buckets, and overly permissive network controls, the most common source of material findings in modern SaaS environments.

What Makes a Good SOC 2 Penetration Test?

A good test pursues specific goals tied to your actual threat model: Can a customer access another customer’s data? Can an unauthenticated user reach administrative endpoints? Can an attacker pivot from a compromised application tier to the underlying cloud account? Generic test-everything engagements rarely produce findings that map cleanly to TSC controls, and they are harder for auditors to evaluate. Specificity is an asset, not a limitation.

The test must also match your SOC 2 audit scope precisely. If your system description names three products and the pentest covered only one, your auditor will issue a finding. Results must be actionable, CVSS scores alone are not enough. Each finding should include reproduction steps, business impact, and prioritized remediation guidance. Anything less wastes engineering time and adds friction at audit fieldwork.

Pro Tip: Avoiding Failed Audits

Auditors will reject a pentest report that consists only of automated scanner output rebadged as a penetration test. This pattern has become common with low-cost pentest-as-a-service providers, and major audit firms have started calling it out as insufficient evidence for CC4.1.

When Should You Perform Penetration Tests for SOC 2 Compliance?

Four scenarios drive timing decisions. The first is the audit deadline itself, a pentest performed too early in the audit window leaves stale findings; too late, and there is no time to remediate before the period closes. The second is a trigger event, such as a security incident or a newly disclosed CVE affecting your stack. The third is a material architecture change, a major deployment, a new authentication system, or a cloud migration that changes your attack surface significantly. The fourth is the basic annual cadence that maintains posture between audits regardless of whether anything has changed.

Worth Knowing: Scheduling a Pentest

Schedule your pentest 90 to 120 days before your audit period closes. That gives engineering time to remediate critical findings, your testing firm time to retest, and your auditor time to validate evidence before the report is drafted. Anything tighter is a recipe for a qualified opinion or a delayed close.

How to Prepare for and Perform Effective SOC 2 Penetration Testing

Preparation starts with scope definition aligned to your SOC 2 system boundary. Document every in-scope application, API, and cloud account. Confirm authentication paths and provision tester accounts before the engagement starts. Brief your testing firm on your threat model and share prior findings so they are not duplicating work.

Choose a testing team with explicit SOC 2 experience. Certifications worth verifying include OSCP, OSWE, CREST, and CISSP. Ask specifically whether the firm produces TSC-mapped reports and whether retests are included in scope, both are non-negotiable for audit-quality evidence. For a full walkthrough of what to look for, the SOC 2 guide covers vendor selection in detail.

Remediate every critical and high finding before the audit period closes. Document medium and low findings with risk acceptance memos or remediation timelines. Then present everything to your auditor as a structured package: pentest report, remediation evidence, retest results, and a control-mapping summary. Auditors appreciate a clean folder, it signals operational maturity.

SOC 2 Penetration Testing Checklist for 2026

Use the SOC 2 checklist as your master reference, and layer in the following for penetration testing specifically. Confirm scope matches your system description. Schedule the engagement 90 to 120 days before the audit window closes. Require Trust Services Criteria mapping in the final report. Ensure manual testing of authorization flows and business logic, not just infrastructure. Remediate all criticals and highs before the period ends. Retain retest evidence alongside the original findings. Store the complete package, report, remediation tickets, retest results, and control mapping, in a single audit folder before fieldwork begins.

What Are the Benefits of SOC 2 Penetration Testing?

Beyond audit evidence, a properly scoped pentest delivers compounding value. It reduces breach risk by surfacing exploitable vulnerabilities before an attacker does. It validates your engineering investment in security controls, giving your team actionable signal rather than theoretical risk scores. It supplies ready-made evidence for customer security reviews and third-party questionnaires that would otherwise require custom responses. And it provides a legally defensible position if a breach later occurs, demonstrating reasonable due diligence is increasingly relevant in regulatory and litigation contexts.

How Much Does a SOC 2 Penetration Test Cost?

For a standard SaaS scope covering one product, its API, and one cloud account, expect to budget $1,000 to $20,000 in 2026. Scope size is the largest cost driver, additional applications, multiple cloud environments, complex authentication flows, and Active Directory all push costs higher. Boutique specialist firms typically deliver better evidence-to-cost ratios than large consultancies, which often charge two to three times the boutique rate for comparable depth of work.

The hidden cost is retesting. Many providers quote a low headline price that excludes retest fees. A finding without retest evidence does not satisfy your auditor, so retests are not optional, they are part of the deliverable. Ask explicitly whether retesting is included before signing an engagement letter.

Reach SOC 2 Compliance in 6 Weeks or Less

Schedule Your Free SOC 2 Assessment Today

Closing Note

SOC 2 will not technically fail you for skipping a penetration test. But the operational reality of modern audits, enterprise procurement requirements, and customer security reviews makes one effectively mandatory. Treat the pentest as the most efficient piece of evidence you can produce for CC4.1, CC6.1, and CC7.1, scope it tightly to your system boundary, remediate findings before the audit window closes, and make sure the report can be read by an auditor without translation. Done well, it is the lightest-weight way to satisfy three of the most scrutinized criteria in SOC 2, and one of the few security investments that pays dividends both inside and outside the audit room.

Frequently Asked Questions About SOC 2 Penetration Testing Requirements

Is penetration testing required for SOC 2 Type I?

Not strictly, but most auditors expect one as evidence of control design. A Type I report without a recent pentest is harder to defend and more likely to generate follow-up requests during fieldwork.

Same answer, more emphatically. Type II tests operating effectiveness over time, and a pentest is the strongest available evidence that controls operate as designed across the audit period.

Annually at minimum, plus additional tests after material changes to architecture, authentication systems, or cloud infrastructure. Some high-velocity engineering organizations supplement annual testing with continuous automated assessment, though this should be discussed with your auditor before relying on it as a substitute.

An executive summary, defined scope and methodology, severity-rated findings with reproduction steps, CVSS scores, Trust Services Criteria control mapping, and prioritized remediation guidance. Retest evidence should be appended or submitted as a follow-on document before the audit period closes.

No. Vulnerability scans support CC7.1 as evidence of ongoing monitoring but do not substitute for the manual evaluation evidence auditors expect under CC4.1 and CC6.1. The two serve different evidentiary purposes and both should appear in your control set.

Any qualified third-party firm with a documented testing methodology and credentialed testers. SOC 2 does not specify required accreditations, but auditors look for evidence of tester independence, a recognized methodology, often referencing NIST SP 800-115, and verifiable tester qualifications such as OSCP or CREST membership.

Axipro Author

Picture of Pedro Dias

Pedro Dias

Pedro has been writing online for over 10 years. With experience in all things programming, cyber security, and compliance, he is our editor-in-chief at Axipro.

Blog Highlights

Explore More Articles

For the past two years, enterprise AI risk conversations have centered on a familiar set of concerns: model bias, hallucination, data privacy, and dependency on third-party models. These are real risks, and most organizations now run some version of a governance program to manage them. But something has shifted. Organizations are no longer just deploying AI that generates content for a human to review. They’re deploying AI that acts. Agents now plan multi-step tasks, call APIs, move data between systems, execute transactions, and coordinate with other agents, often with no human checkpoint in the loop. That shift deserves more than a footnote in the existing AI risk category. It deserves its own line in the risk register: Agentic Autonomy Risk. What Is Agentic AI Risk Management? Agentic AI risk management is the practice of identifying, assessing, and controlling the risks created when AI systems take autonomous action on an organization’s behalf. Where traditional AI governance evaluates outputs (accuracy, bias, privacy), agentic AI risk management governs what agents actually do: the tools they call, the permissions they inherit, and the downstream consequences of their actions. That distinction is the reason existing risk registers struggle with agents, and it’s worth unpacking properly. What Agentic AI Actually Changes Traditional AI systems, even generative ones, are advisory. They produce an output such as a summary, a prediction, a draft email, or a classification, and a human remains the last checkpoint before anything happens in the real world. Agentic AI removes that checkpoint. An agentic system doesn’t just produce an answer. It pursues a goal. It decides which tools to call and in what order, then executes those actions directly against live systems: submitting a purchase order, modifying a database record, sending an external communication, or orchestrating a set of sub-agents to complete a broader workflow. Agentic autonomy is the degree to which a system can plan and execute actions without a human explicitly authorizing each step. It’s a spectrum rather than a binary. At one end, the AI drafts and a human approves every action. At the other, the AI operates within broad guardrails and only escalates exceptions. The further an organization moves along that spectrum, the less its exposure looks like software risk and the more it looks like delegated authority risk, the kind normally reserved for employees, contractors, and automated financial systems. Why Existing Risk Registers Miss Agentic AI Risks Most enterprise risk registers were built on a reasonably safe assumption: a human initiates consequential actions, and the technology around that human behaves deterministically. Agentic AI breaks both halves of that assumption at once. A few specific gaps show up quickly when organizations try to map agentic deployments onto existing categories. Operational risk registers assume process failures come from human error or system outages, not from a system independently choosing an unanticipated path to a stated goal. Cybersecurity risk registers are built around unauthorized external access, while an agent problem usually involves an authorized system taking unauthorized internal actions with its own legitimate credentials. Model risk frameworks, borrowed largely from financial services, evaluate output accuracy rather than action consequences, which matters most when those actions can’t be reversed. And third-party risk assessments treat vendors as static entities, not as autonomous agents that might invoke other vendors’ agents on your behalf. See our guide to the NIST AI Risk Management Framework for how output-focused frameworks are structured. The result is a governance blind spot. An organization can be compliant against its AI policy, its cybersecurity policy, and its vendor risk policy, and still have nobody accountable for the specific risk of a system initiating a harmful sequence of actions before anyone notices. Defining Agentic Autonomy Risk Agentic Autonomy Risk is the risk that an AI system, operating with delegated decision-making and execution authority, takes actions that are harmful, non-compliant, or misaligned with organizational intent before adequate human oversight can intervene. Those actions might happen independently or in coordination with other agents. It deserves standing as a named category alongside cybersecurity, operational, legal, financial, and third-party risk because the loss event itself is different. The harm is a completed action in a live system, and it may be difficult or impossible to reverse. The accountability structure is different too: when an orchestrating agent delegates to sub-agents, responsibility for the outcome gets distributed in ways existing ownership models don’t cleanly capture. So is the detection window. Traditional controls assume a human is positioned to catch an error before it compounds, but an agent can execute dozens of dependent actions faster than any human review cycle. 7 Agentic AI Risk Scenarios to Put on Your Register 1. Unauthorized autonomous decision-making. An agent takes an action within its technical permissions but outside its intended business mandate. It adjusts pricing, approves a refund, or modifies a customer record, and no policy ever explicitly authorized that scenario. 2. Goal misalignment. The agent optimizes for a literal interpretation of its objective in a way that diverges from actual business intent, particularly under ambiguous or adversarial inputs. 3. Multi-agent interactions and cascading failures. One agent’s flawed output becomes another agent’s trusted input. A single error can propagate across a chain of agents faster than anyone can detect it, amplifying the original mistake instead of containing it. 4. Excessive tool or system permissions. Agents get provisioned with broad, standing access “to be safe” rather than scoped, least-privilege access tied to specific tasks. A productivity tool quietly becomes a privilege-escalation path. 5. Regulatory non-compliance. Autonomous actions trigger obligations under data protection, financial services, employment, or sector-specific regulation, and they execute without the compliance review a human-initiated process would normally receive. 6. Explainability and accountability gaps. An autonomous action causes harm and the organization can’t clearly reconstruct why the agent chose that path, or establish whether the business owner, the AI governance function, or the vendor is accountable for the outcome. 7. Autonomous third-party actions. A vendor’s agent, integrated into your environment, takes action on your behalf, or your agent acts against a

A SOC 2 penetration test costs between $1,000 and $30,000 for most companies. A typical SaaS scope, meaning one web application, its API layer, and the cloud infrastructure behind it, usually lands between $2,000 and $20,000. Early-stage startups with a narrow scope can get an auditor-accepted test for $1,000 to $8,000, while enterprises with multiple products and hybrid infrastructure regularly spend $20,000 to $50,000 or more. The spread is wide because “penetration test” covers everything from an automated scan with a cover page to weeks of manual testing by senior engineers. Auditors know the difference, and so do the enterprise customers who asked for your SOC 2 report in the first place. This guide breaks down what drives the price, where the hidden costs sit, and how to buy a test that holds up in fieldwork without overpaying for it. What Is SOC 2 Penetration Testing?​ A SOC 2 penetration test is a simulated attack on your systems, performed by a qualified security professional, scoped to the environment covered by your SOC 2 report. The tester tries to exploit real weaknesses the way an attacker would: broken access controls, injection flaws, misconfigured cloud services, exposed credentials. The output is a report your auditor reads as evidence that your security controls work in practice, not only on paper. That last part matters. A pentest bought for SOC 2 has a second audience beyond your security team. If the report doesn’t map findings to your audit scope, document its methodology, and show remediation, it fails the job you bought it for. We cover the full deliverable in our guide to what a SOC 2-ready VAPT report includes. How Penetration Testing Fits Into SOC 2 Compliance​ SOC 2 is built on the AICPA’s Trust Services Criteria, and the Security category (the Common Criteria) applies to every report. Penetration testing is the standard way to satisfy CC7.1, which expects you to detect and monitor for new vulnerabilities, and it supports CC4.1, which covers ongoing evaluations of whether controls actually function. The AICPA’s points of focus explicitly mention vulnerability scanning and penetration testing as examples of how companies meet these criteria. In practice, the test slots into your audit timeline as an evidence item. Your auditor will ask for the report, check the test date against the audit period, and review how you handled the findings. Remediation is often scrutinized harder than the test itself, because it shows whether your vulnerability management process runs or merely exists. Is Penetration Testing Required for SOC 2?​ Strictly speaking, no. The Trust Services Criteria never use the word “mandatory” about penetration testing. You could theoretically satisfy CC7.1 with vulnerability scanning and strong monitoring alone. In reality, almost every auditor expects one, and skipping it invites two problems. First, your auditor may push back during fieldwork or add exceptions to the report. Second, the enterprise buyers reviewing your SOC 2 report increasingly look for pentest evidence specifically, and a report without it raises questions during procurement. Treat the test as effectively required and budget for it from the start of your SOC 2 compliance checklist. How Much Does SOC 2 Penetration Testing Cost? Typical Price Range for SOC 2 Pen Testing Most companies pay $1,000 to $30,000, with the median engagement for a SaaS business sitting around $12,000 to $15,000. Compliance-focused tests at the lower end of the market start around $1,000 to $5,000. Deep manual testing from established firms runs $10,000 to $30,000. Anything quoted below roughly $3,000 is almost certainly automated scanning packaged as a pentest, which auditors are getting better at spotting. Cost by Company Size (Startup, SMB, Enterprise) Company size is a proxy, not the driver. A 15-person company with three products and a legacy on-prem component will pay more than a 200-person company with one tightly scoped SaaS platform. Testers price effort, and effort follows scope. Cost by Test Type (Network, Web App, API, Cloud, Internal/External) Most SOC 2 engagements bundle two or three of these. The common package for a cloud-native SaaS company is web app plus API plus cloud configuration, which is why the $1,000 to $20,000 band comes up so often. Companies with office networks and internal systems in their audit scope add internal network testing, and the price climbs accordingly. Factors That Influence SOC 2 Penetration Testing Cost Scope and Number of Assets Tested Scope is the single biggest cost driver. Every additional application, API endpoint group, cloud account, or network segment adds testing hours. A pentest priced without a scoping call is a pentest priced on guesswork, and the guess usually favors the vendor. Complexity of Application or Infrastructure​ A simple CRUD app with two user roles tests quickly. A multi-tenant platform with role hierarchies, workflow engines, file processing, and third-party integrations takes far longer, because each of those features creates attack surface a tester has to work through manually. Authentication tiers matter especially: every distinct role needs testing for privilege escalation and cross-tenant data access. Testing Methodology (Black Box, Grey Box, White Box) Black box testing gives the tester nothing but a URL, grey box adds credentials and documentation, and white box adds source code and architecture diagrams. Grey box is the default for SOC 2 and usually the best value, since the tester spends time exploiting rather than discovering. White box costs more upfront but finds deeper issues. Black box sounds rigorous but often wastes paid hours on reconnaissance an attacker would run for free. Depth of Testing and Manual vs. Automated Approaches Automated scanning finds known vulnerability patterns. Manual testing finds business logic flaws, chained exploits, and authorization gaps that no scanner catches, and it’s the part auditors and security-literate customers actually value. The ratio of manual work to automation is the honest explanation for most price differences between two quotes covering the same scope. Tester Credentials and Firm Reputation Senior testers holding OSCP, GPEN, or CREST credentials bill higher rates, and firms with recognized methodologies charge a premium for the credibility their letterhead carries

Two compromised versions of LiteLLM sat on PyPI for roughly 40 minutes on the morning of March 24, 2026. That window was enough to capture secrets from around 434,000 CI/CD pipeline runs across nearly 2,500 organizations, including AWS, Samsung, Cisco, Salesforce, Siemens, and Deloitte. In August, researchers at CloudSEK and Hudson Rock confirmed they had obtained the raw exfiltrated data: a 153GB archive containing 433,909 files of environment variables, cloud keys, Kubernetes secrets, and API tokens harvested live from running pipelines, as covered by Help Net Security’s reporting on the credential archive. If LiteLLM runs anywhere in your stack, or you touch any AI proxy infrastructure at all, you need answers to three things: whether you were exposed, what to rotate first, and whether the rotation you did back in March actually held. That last one matters more than it sounds, because “we rotated everything” has already burned at least one very large company. How the Breach Happened The attack didn’t start with LiteLLM. On March 19, 2026, a threat group called TeamPCP compromised the build pipeline of Trivy, a vulnerability scanner half the industry runs, and pushed a poisoned release. LiteLLM’s own CI pipeline ran Trivy, so the poisoned scanner had legitimate read access to the project’s runner environment. The attackers used that to steal LiteLLM’s PyPI publishing tokens and ship two malicious releases of their own: versions 1.82.7 and 1.82.8. KICS and the Telnyx Python SDK got hit in the same campaign. The payload design is the part worth studying. The malicious package dropped a .pth startup hook into site-packages, so the code ran the moment any Python interpreter started on the machine, whether or not anything imported LiteLLM. From there it harvested environment variables, read local credential files like .aws/credentials and .kube/config, tried to move laterally across Kubernetes clusters, and installed a systemd backdoor dressed up as a generic telemetry service. InfoQ’s coverage of the PyPI compromise put downloads of the compromised release above 40,000. For scale, LiteLLM normally gets downloaded around 3 million times a day. The exfiltration had a nasty fallback, too. According to CloudSEK, stolen data was encrypted and sent to a typosquatted domain, and when that failed, the malware created a public repository inside the victim’s own GitHub account and uploaded the loot as a release asset. Some companies were publishing their own secrets to the open internet and had no idea. Worth Knowing: The malicious code only existed in the PyPI artifacts. The GitHub source repository stayed clean the whole time, so a developer reviewing the code on GitHub saw nothing wrong. Source review isn’t artifact verification. If you don’t check that what the registry serves matches the upstream source, this class of attack is invisible to you. How to Check If You Were Exposed Three checks, from quickest to most involved. 1. Confirm whether the compromised versions ever ran The malicious versions went live on PyPI at 10:39 UTC on March 24, 2026 and got quarantined about 40 minutes later. The project’s advice: treat any install from that day before 16:00 UTC as suspect. Search your lockfiles, pip caches, SBOMs, and container image histories for 1.82.7 and 1.82.8. And check your internal artifact mirrors. An Artifactory or Nexus proxy that cached the bad release in March can keep serving it internally long after PyPI pulled it. Keep the .pth mechanism in mind when you scope this. The question isn’t “which applications import LiteLLM,” it’s “which machines had the package installed at all,” because every Python process on an infected machine triggered the payload. 2. Hunt for persistence Rotation is pointless if the attacker still has a foothold. Check developer machines, CI runners, and containers for unauthorized .pth files in site-packages and for suspicious systemd units, especially anything posing as a system telemetry service. And review activity from March 24 onward, not just the 40-minute window. Persistence is there so the access outlives the infection. Pro Tip: Don’t limit the persistence hunt to live machines. Base container images rebuilt in late March may have baked the payload into every image derived from them since. Scan your image registry for the affected LiteLLM versions and for unexpected .pth files, then trace which running workloads came from flagged images. 3. Check whether your secrets are in the dump Hudson Rock has published a domain lookup tool and is running ethical disclosures for affected organizations, and CloudSEK maintains a high-confidence victim list. Use them, but know their limits. Attribution in this dataset is genuinely hard. One dump with a siriusxm.com committer email actually traced, through its self-hosted GitLab endpoints, to AdsWizz, a SiriusXM subsidiary. And a large share of the dumps are generic pipeline configurations with no identifying domain, email, or server name at all. Absence from a victim list is not evidence of absence. If your pipelines ran the compromised versions, assume exposure no matter what a lookup tool tells you. What to Rotate, in What Order The guidance from both research teams is blunt: treat every secret the LiteLLM environment could reach as compromised. That covers secrets on disk, in memory, injected into CI jobs, and anything retrievable through instance metadata services. Work down by blast radius: Priority Credential type Why it comes first 1 Cloud IAM keys (AWS, GCP, Azure) Direct control of infrastructure, data stores, and billing. This is where attackers monetize fastest. 2 GitHub and GitLab PATs, package publishing tokens These let an attacker poison your releases and turn your company into the next link in the supply chain. 3 Kubernetes service account tokens and kubeconfigs Lateral movement across clusters was built into the payload, not a theoretical risk. 4 Database passwords and third-party API keys Dumped in plain text in the archive, often with no attribution, so nobody will warn you they leaked. 5 AI provider API keys Billing abuse, quota theft, and access to whatever data flows through your LLM routing layer. One word matters more than the rest of this article: revoke, don’t just rotate. That