Skip to main content
Mallory
Malware1 associated actor

sysmon.py

Tracked since Mar 20, 2026 · Updated 21 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors1Associated
ATT&CK42Techniques
IOCs21Tracked
Type
Backdoor
Capabilities
PersistencePost exploitation
Platforms
Linux

sysmonpy is a Python-based persistent backdoor associated with TeamPCP software supply-chain attacks affecting Trivy, Checkmarx, LiteLLM, and the Telnyx Python SDK. It targets Linux systems and provides a mechanism for downloading and executing follow-on payloads after the initial compromise. It is deployed alongside credential-stealing components but is distinct from those harvesters.

The implant waits five minutes before its first network request, then polls an attacker-controlled endpoint approximately every 50 minutes to retrieve a payload URL. It downloads the designated executable, makes it executable, and launches it as a detached process. It records the last payload URL to avoid repeatedly downloading the same payload and supports a dormant state by ignoring links to a video-sharing service.

Persistence is established through a user-level systemd service disguised as a system telemetry service. In Kubernetes environments, accompanying deployment code can use service-account permissions to enumerate nodes and create privileged pods with access to host filesystems. Where permissions allow, this mechanism installs the backdoor and its systemd persistence on cluster nodes, allowing access to survive removal of the initially compromised workload. Its distribution through compromised development packages and security tooling exposes developer systems, CI/CD environments, and Kubernetes infrastructure.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Threat actors

Associated threat actors

1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details →
TeamPCP

The sysmon.py persistence script is a polling backdoor. After a five-minute startup delay, it contacts https://checkmarx.zone/raw every 50 minutes looking for a new payload URL.

via hexastrike bloghexastrike.com
MITRE ATT&CK

Techniques & procedures

42 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

2 techniques
T1133External Remote ServicesEvidence1

The dropper sleeps 5 minutes, then polls the ICP blockchain-hosted C2 for a second-stage payload URL, downloads it to /tmp/pglog , and executes it.

T1195Supply Chain CompromiseEvidence2

CrowdStrike’s Engineering team traced the activity to a compromised GitHub Action named aquasecurity/trivy-action... 76 of the scanner’s 77 release tags had been retroactively poisoned via git tag repointing, replacing the legitimate entry point with a multi-stage credential stealer.

Execution

6 techniques
T1053Scheduled Task/JobEvidence3

it writes this Python script to ~/.config/systemd/user/sysmon.py and creates a systemd unit for persistence.

T1053.006Systemd TimersEvidence3

it writes this Python script to ~/.config/systemd/user/sysmon.py and creates a systemd unit for persistence.

T1059Command and Scripting InterpreterEvidence3

it writes this Python script to ~/.config/systemd/user/sysmon.py

T1059.006PythonEvidence16

it executes a base64-encoded Python filesystem harvester signed "TeamPCP Cloud stealer"

T1574Hijack Execution FlowEvidence2

The .pth payload in 1.82.8 executed on every Python process startup and installed a persistent backdoor (~/.config/sysmon/sysmon.py).

T1610Deploy ContainerEvidence3

If the script is run on a Kubernetes container that has sufficient permissions, it will attempt to deploy a highly privileged pod and run sysmon.py within it... places a highly privileged pod in the 'namespace':'kube-system'.

Persistence

7 techniques
T1053Scheduled Task/JobEvidence3

it writes this Python script to ~/.config/systemd/user/sysmon.py and creates a systemd unit for persistence.

T1053.006Systemd TimersEvidence3

it writes this Python script to ~/.config/systemd/user/sysmon.py and creates a systemd unit for persistence.

T1133External Remote ServicesEvidence1

The dropper sleeps 5 minutes, then polls the ICP blockchain-hosted C2 for a second-stage payload URL, downloads it to /tmp/pglog , and executes it.

T1543Create or Modify System ProcessEvidence4

If absent (meaning it's running on a developer machine or standalone server, not in CI), it writes this Python script to ~/.config/systemd/user/sysmon.py and creates a systemd unit for persistence.

T1543.001Launch AgentEvidence1

sysmon.service installed as persistent systemd user service

T1543.002Systemd ServiceEvidence21

It is saved as sysmon.py and installs a sysmon.service systemd unit to ensure the script runs persistently across reboots.

T1547Boot or Logon Autostart ExecutionEvidence1

The .pth payload in 1.82.8 executed on every Python process startup and installed a persistent backdoor (~/.config/sysmon/sysmon.py).

Privilege Escalation

7 techniques
T1053Scheduled Task/JobEvidence3

it writes this Python script to ~/.config/systemd/user/sysmon.py and creates a systemd unit for persistence.

T1053.006Systemd TimersEvidence3

it writes this Python script to ~/.config/systemd/user/sysmon.py and creates a systemd unit for persistence.

T1543Create or Modify System ProcessEvidence4

If absent (meaning it's running on a developer machine or standalone server, not in CI), it writes this Python script to ~/.config/systemd/user/sysmon.py and creates a systemd unit for persistence.

T1543.001Launch AgentEvidence1

sysmon.service installed as persistent systemd user service

T1543.002Systemd ServiceEvidence21

It is saved as sysmon.py and installs a sysmon.service systemd unit to ensure the script runs persistently across reboots.

T1547Boot or Logon Autostart ExecutionEvidence1

The .pth payload in 1.82.8 executed on every Python process startup and installed a persistent backdoor (~/.config/sysmon/sysmon.py).

T1611Escape to HostEvidence3

the privileged pod escapes to the host and installs a backdoor at /host/root/.config/sysmon/sysmon.py with a systemd service for automatic restart on boot

Stealth

8 techniques
T1027Obfuscated Files or InformationEvidence3

a Base64-encoded Python script is decoded and executed... Collected data is encrypted with a randomly generated AES-256-CBC session key, and the session key is wrapped with a hardcoded 4096-bit RSA public key.

T1036MasqueradingEvidence3

The primary exfiltration channel is an HTTPS POST to scan.aquasecurtiy[.]org — a typosquatted domain mimicking Aqua Security's legitimate aquasecurity.com... The choice of filename mimics PostgreSQL logging

T1036.005Match Legitimate Resource Name or LocationEvidence1

sysmon.py dropped to mimic legitimate sysmon monitoring artifact

T1218.001Compiled HTML FileEvidence1

If absent (meaning it's running on a developer machine or standalone server, not in CI), it writes this Python script to ~/.config/systemd/user/sysmon.py and creates a systemd unit for persistence.

T1497.003Time Based ChecksEvidence1

After an initial five-minute sleep (likely intended to outlast sandbox analysis timeouts), it enters a polling loop that contacts a command-and-control (C2) server approximately every 50 minutes.

T1564Hide ArtifactsEvidence1

the state file is dot-prefixed to stay hidden from casual directory listings. Error handling is deliberately silent throughout.

T1564.001Hidden Files and DirectoriesEvidence1

If it is run on a standard linux host, it creates hidden directories in the users home folder ~/.config/sysmon and writes the python backdoor there.

T1574Hijack Execution FlowEvidence2

The .pth payload in 1.82.8 executed on every Python process startup and installed a persistent backdoor (~/.config/sysmon/sysmon.py).

Credential Access

7 techniques
T1003OS Credential DumpingEvidence1

On GitHub-hosted Linux runners, a Base64-encoded Python script is decoded and executed with sudo. It locates the Runner.Worker process, reads its memory maps via /proc/{PID}/maps, and scrapes raw process memory via /proc/{PID}/mem looking for GitHub Actions secrets

T1528Steal Application Access TokenEvidence2

The runner executes whatever code the action contains, with full access to the runner's environment, secrets, and network... looking for GitHub Actions secrets — specifically JSON structures matching "name":{"value":"...","isSecret":true}.

T1552Unsecured CredentialsEvidence3

On self-hosted runners, a different Base64-encoded Python script performs broad filesystem credential harvesting. It targets the following: SSH private keys and configs, Cloud credentials, Kubernetes configs and service account tokens, Docker registry credentials, Database credentials... .env files and API keys

T1552.001Credentials In FilesEvidence1

On self-hosted runners, a different Base64-encoded Python script performs broad filesystem credential harvesting. It targets the following: SSH private keys and configs Cloud credentials... Kubernetes configs... Docker registry credentials... .env files and API keys... System files (/etc/passwd, /etc/shadow, shell histories)

T1552.007Container APIEvidence1

If the script is run on a Kubernetes container that has sufficient permissions, it will attempt to deploy a highly privileged pod... The script checks to see if the file: /var/run/secrets/kubernetes.io/serviceaccount/token exists and if it does, it uses that token to query /api/v1/nodes.

T1555Credentials from Password StoresEvidence3

It targets the following: SSH private keys and configs Cloud credentials (AWS, Google Cloud, Azure) Kubernetes configs and service account tokens Docker registry credentials Database credentials...

T1649Steal or Forge Authentication CertificatesEvidence1

On self-hosted runners, a different Base64-encoded Python script performs broad filesystem credential harvesting. It targets the following: SSH private keys and configs

Discovery

6 techniques
T1057Process DiscoveryEvidence1

Stage 1: Runner Process Discovery Initially, the script enumerates process IDs (PIDs) of GitHub Actions runner processes (Runner.Worker, Runner.Listener, runsvc, run.sh)...

T1082System Information DiscoveryEvidence1

System Information: hostname, whoami, uname -a, ip addr, ip route

T1083File and Directory DiscoveryEvidence1

On self-hosted runners, a different Base64-encoded Python script performs broad filesystem credential harvesting. It targets the following: SSH private keys and configs... Terraform state/vars... .env files and API keys

T1497.003Time Based ChecksEvidence1

After an initial five-minute sleep (likely intended to outlast sandbox analysis timeouts), it enters a polling loop that contacts a command-and-control (C2) server approximately every 50 minutes.

T1526Cloud Service DiscoveryEvidence1

A second python script queries AWS instance Metadata endpoints (IMDSv1/v2)... and queries the Kubernetes API if local service account tokens are found.

T1613Container and Resource DiscoveryEvidence2

Within 3 hours, a backdoor harvested every credential on the machine — ... Kubernetes secrets ...

Lateral Movement

1 technique
T1570Lateral Tool TransferEvidence1

If stage 1 finds a Kubernetes service account token... it deploys a privileged pod to every node in the cluster... writes sysmon.py to /host/root/.config/sysmon/sysmon.py on the node

Collection

3 techniques
T1005Data from Local SystemEvidence2

the Python filesystem harvester ... reads SSH keys, cloud credentials, Kubernetes configs, Docker credentials, .env files, terraform state, shell history, database configs, TLS private keys, and cryptocurrency wallets, walking multiple directories up to 6 levels deep

T1119Automated CollectionEvidence1

After an initial five-minute sleep... it enters a polling loop that contacts a command-and-control (C2) server approximately every 50 minutes.

T1560Archive Collected DataEvidence1

The encrypted bundle (payload.enc + session.key.enc) is packaged as tpcp.tar.gz

Command and Control

3 techniques
T1071Application Layer ProtocolEvidence8

Exfiltration domain models.litellm[.]cloud C2 domain checkmarx[.]zone

T1071.001Web ProtocolsEvidence4

polls the ICP blockchain-hosted C2 for a second-stage payload URL, downloads it to /tmp/pglog, and executes it.

T1105Ingress Tool TransferEvidence14

The malware downloads a persistence script to the host... The second-stage payload is fetched via checkmarx.zone/raw

Exfiltration

3 techniques
T1029Scheduled TransferEvidence6

The persistence script polls https://checkmarx.zone/raw every 50 minutes for additional payloads... while True ... time.sleep(3000)

T1041Exfiltration Over C2 ChannelEvidence1

The binary also exhibits the same credential-stealing behavior as the compromised action. It scans for credentials, bundles them, encrypts them, and then exfiltrates the data via a post request.

T1567Exfiltration Over Web ServiceEvidence1

The primary exfiltration channel is an HTTPS POST to scan.aquasecurtiy[.]org... If the endpoint returns a non-2XX response and INPUT_GITHUB_PAT is available, the script falls back to exfiltrating through GitHub itself. It will create a public repository named tpcp-docs under the victim's GitHub account, create a timestamped release, and upload the encrypted bundle as a release asset.

Indicators of compromise

Observables

21 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
hexastrike blogNews · Mar 29, 2026Ringing in Chaos: How TeamPCP Weaponized the Telnyx Python SDK - Hexastrike CybersecurityPython backdoor deployed to compromised Linux hosts and Kubernetes nodes. It persists through a systemd user service named System Telemetry Service, polls attacker infrastructure for payload URLs, and downloads and executes follow-on binaries. It tracks the previous URL to avoid repeatedly downloading the same payload. The filename identifies the malicious script described here, not a formally identified malware family.Read more ↗opensourcemalware blogNews · Mar 25, 2026TeamPCP Hijacks LiteLLM's PyPI Package - Credential Stealer Hits 40k-Star Project | OpenSource Malware BlogA Linux persistence backdoor dropped by the malicious LiteLLM package payload. It is installed as a disguised system telemetry service, beacons to checkmarkr.zone/raw for commands, and provides persistent access on Linux hosts and Kubernetes nodes.Read more ↗step security blogNews · Mar 24, 2026litellm: Credential Stealer Hidden in PyPI Wheel - StepSecurityA persistent C2 backdoor dropped by the malicious litellm package. It is installed as a systemd user service, polls https://checkmarx.zone/raw roughly every 50 minutes, downloads arbitrary binaries, makes them executable, and runs them detached. In Kubernetes environments, it is also written onto host nodes for persistence and lateral compromise.Read more ↗ramimac blogNews · Mar 23, 2026KICS GitHub Action Compromised: TeamPCP Supply Chain Attack | Wiz BlogA Python backdoor dropped by the malicious setup.sh script. It persists on Linux hosts or Kubernetes nodes, polls attacker-controlled infrastructure for additional payload URLs, downloads and executes follow-on payloads, and is used to maintain access after the initial CI/container execution ends.Read more ↗
+1 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching21Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors1Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping42Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.