Back to Blog
Adversarial Machine Learning

Penetrating a Defense Contractor: A Study in Advanced Persistent Threat (APT) Emulation

OffSec Research Team
10 June 2026 • 09:00 AM14 min
Penetrating a Defense Contractor: A Study in Advanced Persistent Threat (APT) Emulation
TL;DR — APT emulation against a cleared defense contractor requires operating entirely within the bounds of legitimate tooling, mimicking the patience and tradecraft of nation-state actors who have learned that burning offensive tools against hardened targets is wasteful. This case study documents a fourteen-week APT10 emulation engagement against a CMMC Level 3 organization, demonstrating how an adversary can exfiltrate Controlled Unclassified Information using nothing but authorized enterprise software and behavioral camouflage.

Executive Summary

Cleared defense contractors (CDCs) occupy a unique position in the threat landscape. They handle Controlled Unclassified Information (CUI), export-controlled technical data under ITAR, and often interface with classified networks through personnel operating across both unclassified and classified computing environments. They are simultaneously targets of significant intelligence interest — China's MSS, Russia's GRU, and North Korea's Lazarus Group have all been attributed to defense contractor intrusions — and subject to increasingly rigorous compliance requirements under the Cybersecurity Maturity Model Certification (CMMC) framework.

CMMC Level 3, the tier applicable to organizations handling CUI related to critical programs, requires implementation of all 110 practices from NIST SP 800-171 plus an additional 24 practices drawn from NIST SP 800-172. On paper, a Level 3-certified organization should present a hardened target. In practice, we find that compliance certification measures the existence of controls, not their effectiveness against sophisticated adversaries.

This engagement emulated APT10, a Chinese state-sponsored threat actor attributed to the MSS's Tianjin bureau and assessed with high confidence to be responsible for Operation Cloud Hopper — a multi-year campaign targeting managed service providers and defense supply chain. APT10's defining characteristic is patience: the group operates on timelines measured in months, uses legitimate tools and credentials to avoid detection, and prioritizes CUI and intellectual property from the defense sector.

Our client — "Aerotek Defense Systems" (anonymized) — had completed CMMC Level 3 assessment six months prior. Their CISO was confident in their posture. Fourteen weeks later, we had demonstrated the ability to access CUI including ITAR-controlled technical drawings, had maintained undetected access for eleven of those fourteen weeks, and had exfiltrated proof-of-concept data using steganography embedded in SharePoint document thumbnails. No defensive alert fired until our voluntary notification on day 97.


Threat Actor Profile: APT10 / Stone Panda

APT10 (also tracked as Stone Panda, MenuPass, POTASSIUM, and Red Apollo) is assessed by the US intelligence community as operating on behalf of China's Ministry of State Security. The group's known TTPs, as documented in DoJ indictments and CISA advisories, include:

  • Extended dwell times (average 12-18 months before discovery)
  • Exclusive use of legitimate remote administration tools after initial access (ScreenConnect, TeamViewer, Cobalt Strike with custom profiles to mimic legitimate traffic)
  • CUI and intellectual property targeting via SharePoint, ShareFile, and network file shares
  • Supply chain access through MSP compromise followed by lateral movement to MSP customers
  • Spearphishing with defense-themed lures (contract award notifications, security clearance paperwork, ITAR compliance updates)

Our emulation used only the MITRE ATT&CK for Enterprise + PRE-ATT&CK techniques attributed to APT10, deliberately excluding more modern capabilities the actor has since developed. The goal was to demonstrate what a 2019-era APT10 campaign would achieve against a 2024 defender.


OSINT and Pre-Attack Intelligence Gathering

LinkedIn as a Targeting Database

LinkedIn provides extraordinary intelligence value for defense contractor targeting. A search for employees at Aerotek Defense Systems revealed:

  • 847 current employees with job titles indicating clearance levels (e.g., "Senior Systems Engineer — TS/SCI" signals access to the most sensitive programs)
  • Technology stack disclosure in job postings: "Experience with SharePoint Online, CrowdStrike Falcon, CyberArk PAM" — confirming specific defensive tools
  • Cleared employees' professional histories — previous contractors (potential relationship-based phishing lures), publication records, conference presentations
  • Photos from LinkedIn that, reverse-searched, appeared in conference talks with visible slide content containing internal project names
bash
# OSINT automation against defense contractor LinkedIn presence# Using publicly available linkedin-api (authorized research only) python3 -c "import json # Simulated OSINT findings from LinkedIn analysisfindings = {    'high_value_targets': [        {'name': 'Program Director, ITAR Programs', 'connections': 412, 'activity': 'active'},        {'name': 'Senior Systems Architect', 'connections': 287, 'activity': 'posts weekly'},        {'name': 'Cybersecurity Manager', 'connections': 589, 'activity': 'active'},    ],    'tech_stack_from_jobs': [        'SharePoint Online', 'Microsoft Teams', 'CrowdStrike Falcon',        'CyberArk PAM', 'Splunk SIEM', 'Palo Alto NGFW'    ],    'conference_talks': [        'NDIA 2023: presenter leaked internal project codename in slide',        'AFCEA: org chart visible in background of group photo'    ]}print(json.dumps(findings, indent=2))"

GitHub and Public Code Repositories

Three Aerotek employees maintained public GitHub accounts with repositories from personal projects. One repository — a PowerShell utility written by a senior sysadmin for personal use — contained a hardcoded internal DNS domain suffix (corp.aerotek-defense.internal) in a commented-out variable. This confirmed the internal domain naming convention, valuable for subsequent Active Directory enumeration.

A search of historical GitHub commits using tools like truffleHog and git-secrets identified no live credentials, but did find a 2021 commit (since deleted from the default branch but accessible in git history) containing an expired API key for an internal automation platform. The platform vendor, when contacted in our OSINT phase, confirmed the API key format matched their current product — indicating the platform was still in use with a rotated key.


Initial Access: Strategic Web Compromise

Waterhole Attack on Defense Industry Forum

APT10 is historically associated with strategic web compromise — infecting websites that target personnel are known to visit. For our emulation, we identified a legitimate defense industry professional forum frequented by Aerotek employees (confirmed via LinkedIn post history where employees shared links to forum discussions). We did not compromise the actual forum; instead, we registered a typosquatted domain (aerodef-forum.com vs. aerodefforum.com) and built a convincing replica of the forum's login page.

The typosquatted site was promoted via a spearphishing email to the Aerotek employee list, referencing a "featured article" that required forum login to read. The article topic — "CMMC Level 3 Assessment Preparation Best Practices" — was directly relevant to the target's current compliance initiative.

Spearphishing Lures

python
#!/usr/bin/env python3"""APT10 Emulation - Spearphishing Lure GenerationDefense-themed lures based on target's current CMMC compliance focus""" LURE_TEMPLATES = {    "contract_award": {        "subject": "Contract Award Notification - DCSA Approval Required",        "body_theme": "Defense Contract Audit Agency notification requiring credential verification",        "target_roles": ["Program Manager", "Contracts", "Business Development"],        "urgency": "high"    },    "cmmc_compliance": {        "subject": "CMMC Assessment Update - Action Required by [DATE+3 days]",        "body_theme": "CMMC C3PAO requesting additional documentation via secure portal",        "target_roles": ["Cybersecurity", "IT", "Compliance"],        "urgency": "critical"    },    "security_clearance": {        "subject": "Periodic Reinvestigation - SF-86 Submission Required",        "body_theme": "DCSA e-QIP portal requiring credential re-verification",        "target_roles": ["TS/SCI cleared", "Program leads"],        "urgency": "high"    }} for lure_name, config in LURE_TEMPLATES.items():    print(f"Lure: {lure_name}")    print(f"  Target roles: {', '.join(config['target_roles'])}")    print(f"  Click-through estimated: {30 if config['urgency'] == 'critical' else 15}%")    print()

Of 43 targeted spearphishing emails sent to employees matching the profiles above, 11 submitted credentials. Six of these were cleared personnel, providing credentials with access to CUI repositories.


Living Off the Land: Authorized Tool Abuse

The APT10 Philosophy in CMMC Environments

CMMC Level 3 requires a Managed Security Service Provider (MSSP) to review alerts and conduct incident response. CrowdStrike Falcon was deployed on all endpoints. Splunk ingested security events. This environment demands absolute avoidance of offensive tooling — no Cobalt Strike beacons, no Mimikatz, no network scanners. An APT10 emulation must use only what the organization has already authorized.

The tools available to us after credential compromise:

Authorized ToolLegitimate PurposeAPT10 Abuse Method
SharePoint OnlineDocument collaborationCUI data discovery via keyword search
Microsoft TeamsCommunicationInternal intelligence gathering, credential search in chat history
PowerShell + WinRMRemote administrationLateral movement, registry queries
OneDrive Sync ClientFile synchronizationSlow CUI exfiltration via sync to attacker-controlled account
Azure AD JoinDevice managementToken theft via Azure AD Seamless SSO
VPN (GlobalProtect)Remote network accessPersistent access with stolen credentials
powershell
# SharePoint Online CUI discovery using PnP PowerShell module# Runs under compromised user context - fully authorized tool Import-Module PnP.PowerShell # Connect using compromised user credentialsConnect-PnPOnline -Url "https://aerotek.sharepoint.com" `                  -ClientId "[app-id]" `                  -Interactive # Search for CUI-marked documents (NIST SP 800-171 requires CUI marking)$CUISearchResults = Submit-PnPSearchQuery `    -Query "CUI OR 'Controlled Unclassified' OR 'ITAR' OR 'Export Controlled'" `    -SelectProperties Title, Path, Author, LastModifiedTime, FileExtension `    -SortList @{Property="LastModifiedTime"; Direction="Descending"} `    -MaxResults 500 foreach ($result in $CUISearchResults.ResultRows) {    Write-Host "[+] CUI Document Found:"    Write-Host "    Title: $($result['Title'])"    Write-Host "    Path: $($result['Path'])"    Write-Host "    Modified: $($result['LastModifiedTime'])"    Write-Host "    Author: $($result['Author'])"} # Export results to local file for analysis (mimics legitimate export activity)$CUISearchResults.ResultRows | Export-Csv -Path "sharepoint_search_results.csv" -NoTypeInformation

The SharePoint search returned 1,247 documents with CUI or ITAR markings. The most sensitive cluster — ITAR-controlled technical drawings for a specific weapons system — resided in a SharePoint site with permissions granted to any employee with a SIPR-cleared Active Directory group membership. Six of our eleven compromised accounts had this group membership.


Bypassing CMMC Controls

Multi-Factor Authentication: Session Token Theft

CMMC Practice AC.3.018 requires MFA for all privileged access. The implementation used Azure AD Conditional Access with Microsoft Authenticator. Our AiTM phishing infrastructure (using Evilginx3) captured both passwords and session tokens, bypassing MFA without any interaction with the authenticator app. The captured ESTSAUTHPERSISTENT cookie for Azure AD provides persistent access for the session duration.

FIPS-140 Requirement: Memory-Only Operations

CMMC requires FIPS-140 validated cryptographic modules for all encryption. This is primarily a compliance concern for defensive systems (VPN, disk encryption). For an attacker operating entirely in memory — using PowerShell with .NET reflection rather than compiled binaries on disk — the FIPS requirement has no practical enforcement mechanism.

powershell
# Memory-only execution pattern - avoids FIPS compliance checks on disk crypto# All operations in PowerShell process memory $assembly = [System.Reflection.Assembly]::Load([byte[]](    # Assembly bytes loaded from network or encoded string    # No disk writes - FIPS enforcement targets file-system crypto)) # Invoke methods from memory-loaded assembly$type = $assembly.GetType("Namespace.ClassName")$method = $type.GetMethod("Execute")$result = $method.Invoke($null, @($args))

Covert Command and Control

Domain Fronting via Allowed CDN

Our C2 traffic was routed through Cloudflare Workers, a CDN allowed in the organization's proxy policy for Microsoft Teams media delivery. The HTTP Host header was set to a Cloudflare-fronted domain that appeared in access logs as legitimate Cloudflare CDN traffic. From the proxy logs' perspective, our beacons were indistinguishable from Teams media streaming:

diagram — rendering…
sequenceDiagram
    participant Implant as Implant (Aerotek Workstation)
    participant Proxy as Corporate Proxy
    participant CF as Cloudflare CDN
    participant C2 as Attacker C2 Server

    Implant->>Proxy: CONNECT cloudflare.net:443\nHost: legitimate-frontend.example.com
    Note over Proxy: Proxy allows - Cloudflare CDN\nis whitelisted for Teams
    Proxy->>CF: TLS to cloudflare.net\nSNI: legitimate-frontend.example.com
    CF->>C2: Forward to actual C2\nbased on Host header routing
    C2->>CF: C2 response
    CF->>Proxy: Response via Cloudflare
    Proxy->>Implant: Delivered to implant
    Note over Proxy: Proxy log shows: cloudflare.net\nNo indication of C2 activity

The beacon interval was set to 4 hours with 30-minute jitter. In 14 weeks of active operations, we sent fewer than 600 total C2 callbacks — well below the volume threshold of any behavioral analytics rule we encountered.


CUI Exfiltration: Slow and Stealthy

DLP Threshold Evasion

Aerotek's DLP policy flagged single file transfers exceeding 50MB or bulk transfers of more than 10 documents in a 24-hour period. Our exfiltration strategy stayed within these thresholds:

  • 1-3 documents per day, selected for maximum intelligence value
  • Files transferred during business hours to blend with normal SharePoint activity
  • OneDrive sync client used for exfiltration (the sync client is authorized for business use and its traffic blends with legitimate sync operations)

Over 6 weeks of data exfiltration, we transferred 127 documents totaling 340MB — well under DLP thresholds — containing ITAR-controlled technical drawings, CUI-marked contracts, and internal competitive intelligence.

Steganography in SharePoint Thumbnails

For the most sensitive documents, we used a steganographic exfiltration channel that hid data in JPEG thumbnails automatically generated by SharePoint when documents are uploaded:

python
#!/usr/bin/env python3"""LSB Steganography for SharePoint thumbnail exfiltrationHides encrypted data in JPEG thumbnail images using least-significant-bit encoding"""from PIL import Imageimport numpy as npimport structimport base64from cryptography.fernet import Fernet def encode_data_in_image(image_path: str, secret_data: bytes, key: bytes) -> Image.Image:    """    Encode encrypted data into image LSBs    JPEG compression can destroy LSB data; use PNG for thumbnails you control    """    # Encrypt the data first    f = Fernet(key)    encrypted = f.encrypt(secret_data)        img = Image.open(image_path).convert('RGB')    pixels = np.array(img)        # Prepend 4-byte length header    payload = struct.pack('>I', len(encrypted)) + encrypted    payload_bits = ''.join(format(byte, '08b') for byte in payload)        if len(payload_bits) > pixels.size:        raise ValueError("Payload too large for carrier image")        flat = pixels.flatten().astype(np.uint8)    for i, bit in enumerate(payload_bits):        flat[i] = (flat[i] & 0xFE) | int(bit)  # Set LSB        result = flat.reshape(pixels.shape)    return Image.fromarray(result) # Exfil workflow:# 1. Encrypt CUI document content# 2. Encode in SharePoint thumbnail PNG# 3. Upload innocuous document with payload in thumbnail# 4. Thumbnail is accessible publicly via SharePoint CDN URL# 5. Attacker downloads thumbnail from CDN - no outbound DLP inspection on CDN URLskey = Fernet.generate_key()print(f"[*] Steganographic exfiltration channel operational")print(f"[*] Data capacity per thumbnail: ~50KB (sufficient for compressed documents)")

MITRE ATT&CK Mapping

Technique IDTechnique NameImplementation
T1566.001Spearphishing AttachmentDefense-themed lures (CMMC, DCSA, contract award)
T1557.001AiTM PhishingEvilginx3 reverse proxy captures MFA tokens
T1078Valid AccountsCompromised cleared employee credentials
T1071.001Application Layer Protocol: WebHTTPS C2 via domain fronting through Cloudflare
T1213.002Data from Information Repositories: SharePointCUI discovery and access via PnP PowerShell
T1041Exfiltration Over C2 ChannelCUI documents transferred via OneDrive sync + C2
T1564.004Hide Artifacts: NTFS File AttributesSteganographic payload in SharePoint thumbnails
T1027Obfuscated Files or InformationPowerShell reflection + memory-only execution
T1003OS Credential DumpingPRT theft via AADInternals
T1083File and Directory DiscoverySharePoint search for CUI-marked documents

Conclusion

The uncomfortable truth this engagement surfaces is that CMMC compliance, rigorously implemented and freshly certified, did not prevent a motivated adversary from accessing CUI and maintaining eleven weeks of undetected presence. The gap between compliance and security is not a failure of CMMC's design — the standard genuinely addresses the control areas that matter. The gap is between what compliance assessments measure (the existence and configuration of controls at a point in time) and what adversaries exploit (the operational behavior of those controls under sustained adversarial pressure).

APT10's tradecraft — patience, legitimate tool abuse, traffic that blends with authorized activity — defeats controls that were designed with less sophisticated adversaries in mind. The DLP policy flagged bulk transfers; we transferred incrementally. The proxy blocked known malicious domains; we used an authorized CDN. The EDR detected offensive tooling; we used PowerShell. The SIEM had rules for credential abuse; we used the same credentials for the same applications the legitimate user accessed.

Defense contractors and the government customers who depend on their security must understand this attack model. CMMC is a necessary foundation. It is not sufficient protection against a patient, well-resourced adversary who has read your compliance documentation and built their campaign around its gaps. The supplementary requirements — threat intelligence, behavioral analytics, active threat hunting, and the organizational culture to act on findings — are not optional enhancements to CMMC. They are the layer between a compliant organization and a compromised one.

The defense supply chain is not a static target. The adversaries who care about it are actively probing its boundaries, refining their tradecraft, and waiting patiently. Defenders who assume their CMMC assessment represents their security posture are accepting a risk they have not fully quantified.