Researcher · Manifold Security · PhD, Caltech

I measure what AI agents actually do.

I bait coding agents with planted files, lures and bad instructions, and hunt the malicious code they install. Then I publish what I find.

About Cody

I'm a researcher at Manifold Security, where I study what AI coding agents do beyond the task they were given: leaking secrets, changing config, deleting their own logs. I wrote The Agent Behavior Index, which scored 11 models across 6 harnesses including Claude Code, Codex and Cursor.

Before Manifold I spent six and a half years on Sonatype's malicious-software detection team, building behavior and static analysis for PyPI, npm and other open-source ecosystems with as few false positives as possible. Those systems caught hundreds of thousands of malicious components.

I came to security from science. My PhD at Caltech was on magnetotactic bacteria, and I ran clinical genetic tests for six years before turning to data science. I always look at the data itself, not just the metrics describing it.

Agent behaviorSupply-chain malwareModel internalsDetection & logging

  1. 2026 – nowResearcher, Manifold Security
  2. 2019 – 2026Data Scientist, Sonatype, malware detection
  3. 2016 – nowFreelance data scientist, ML, GANs, NLP, analytics
  4. 2010 – 2016Laboratory Director Assistant, Genetics Center
  5. 2008 – 2010Assistant Research Scientist, Caltech
  6. EducationPhD Geobiology, Caltech · MSc Space Science, International Space University · BSc Biology, Rhodes College

Selected research

Republished from Manifold Security, newest first.

White paper · 24 Nov 2026

The Agent Behavior Index

We ran 11 models through 6 coding-agent harnesses and found the harness matters as much as the model. One planted payload fired in 52% of a model's runs in one harness and 19% in another. Approval checks stopped under 1% of payloads planted where git runs them.

  • Models11 AI models
  • Harnesses6, including Claude Code, Codex and Cursor
  • Runs47K on the harnesses, plus 9K on a minimal baseline
  • BaitPlanted files, misleading instructions, direct requests
  • Watched forLeaked secrets, config changes, edits to their own logs
  1. AI agents have few qualms with log tampering

    Most frontier agents will delete or edit their own logs when asked. Only Muse Spark refused often. Tamper-evident logging catches it.

    Research
  2. The high-risk domains of agent skills and where they lead

    5.5 million URLs checked. 121 agent components use a high-risk domain, including a crypto miner reporting to servers on a botnet list.

    with Swapnil Patil
    Research
  3. Ask a model if code is malicious and it reaches for its morals

    Inside every model measured, the question is this code malicious? runs on the machinery of moral judgment.

    Research
  4. Jev, System One models, and how to use them in security

    On StepShield, Jev caught 97.2% of agents breaking a user's constraints at a 5.6% false-positive rate. Use it as a first filter.

    with Markus Gierlinger
    Opinion
  5. Over 350,000 GitHub files cite placeholder domains serving scams

    Two example domains cited in code and about 350 agent skills send some macOS visitors to scareware and investment fraud.

    Research
  6. OpenAI & Hugging Face: why the chain-of-thought police won't save you

    Agents were seen coordinating seven weeks before the breach. Each alert was read alone.

    Opinion
  7. What to think about curl | bash now that AI agents run it

    4,003 extensions and 2.7M agent events scanned. The URL tells you nothing; behavior does.

    with Ax Sharma
    Opinion
  8. When a conversation wanders, do an agent's guardrails slip?

    A wandering session does not make jailbreaks easier. How much of it stays close to the harm does.

    Research
  9. 77 "evil twin" Open VSX extensions

    Counterfeits beaconing to one new domain. 19 send git remotes, commit emails and CI project IDs.

    with Ax Sharma
    Research
  10. A beaconing counterfeit extension on the VS Code Marketplace

    "Markdown All Pro" copies a popular extension, beacons username and hostname on install, and pulls remote files to disk.

    with Ax Sharma
    Research

All posts on Manifold ↗

Experiment · 18 Mar 2024

Can AI create a white painting?

I asked DALL-E 3, Midjourney, Stable Diffusion XL and others for a plain white painting: "a blank white space", "a white background", even "#FFFFFF". They kept adding things. The closest result looked right but missed what makes a human monochrome work a painting: an idea behind it.

Sonatype malware archive

64 articles from 2020 to 2025 about malware caught by the automated detection systems I built at Sonatype.

  1. Overview
  2. Overview
  3. Overview
  4. Overview
Standalone write-ups 30
  1. Unprecedented automation: IndonesianFoods pits open source against itself
  2. Ongoing npm software supply chain attack exposes new risks
  3. npm chalk and debug packages hit in software supply chain attack
  4. Sonatype uncovers global espionage campaign in open source ecosystems
  5. Revived CryptoJS library is a crypto stealer in disguise
  6. Multiple crypto packages hijacked, turned into info-stealers
  7. Fake VS Code extension on npm uses altered ScreenConnect utility as spyware
  8. Fake Solana packages target crypto devs, abuse Slack and ImgBB for data theft
  9. npm packages @rspack/core, @rspack/cli and vant compromised, blocked by Sonatype
  10. Ideal typosquat "solana-py" steals your crypto wallet keys
  11. PyPI crypto-stealer targets Windows users, revives malware campaign
  12. Fake distube-config npm package drops Windows info-stealing malware
  13. npm packages caught exfiltrating Kubernetes config and SSH keys
  14. New npm PoC packages target PayPal Zettle, Airbnb developers
  15. 'Quoi…? feur': from meme to malware, a PyPI package
  16. Malicious 'aptX' Python package drops Meterpreter shell, deletes netstat
  17. PyPI packages steal Telegram cache files, add Windows remote-desktop accounts
  18. Sonatype catches new PyPI cryptomining malware via automated detection
  19. Malicious npm package disables Windows Defender antivirus
  20. New 'pymafka' malicious package drops Cobalt Strike on macOS, Windows, Linux
  21. 86 malicious npm packages named after popular NodeJS function names
  22. Remember npm library 'colors'? There's no such thing as 'colors-2.0'
  23. Careful out there: open source attacks continue to be on the uptick
  24. Trojanized PyPI package imitates a popular Python server library
  25. Popular npm project used by millions hijacked in supply-chain attack
  26. Open source attacks on the rise: top 8 malicious packages found in npm
  27. New Repository Firewall policy to secure supply chains from dependency-confusion attacks
  28. Malicious dependency confusion copycats exfiltrate bash history and /etc/shadow files
  29. Sonatype spots 150+ malicious npm packages copying recent supply chain attacks
  30. Massive threat campaign: Sonatype spots new CursedGrabber malware
Periodic digests 18
  1. Open Source Malware Index Q3 2025: high-severity attacks surge
  2. Open Source Malware Index Q2 2025: data exfiltration remains a leading threat
  3. Open Source Malware Index Q1 2025: data exfil threats rising sharply
  4. Malware Monthly: February 2023
  5. Malware Monthly: November 2022
  6. This Week in Malware: over 70 packages discovered
  7. This Week in Malware: nearly 40 packages discovered
  8. This Week in Malware: over 50 packages discovered
  9. This Week in Malware: over 100 packages discovered
  10. This Week in Malware: over five dozen more packages discovered
  11. This Week in Malware: almost 100 packages
  12. This Week in Malware: ongoing dependency confusion
  13. This Week in Malware: a PyPI phishing follow-up plus 120 packages
  14. This Week in Malware: July 15th edition
  15. This Week in Malware: Python packages peek into your Telegram, set up Windows RDP access
  16. This Week in Malware: malicious Rust crate, 'colors' typosquats
  17. This Week in Malware: npm backdoors, bugs, 'mystery placeholders'
  18. This Week in Malware: special edition on protestware and a Struts RCE déjà vu
Coverage beyond Sonatype 12
  1. North Korean hackers continue targeting developers in open source malware campaign · ITPro
  2. Sonatype uncovers global espionage campaign in open source ecosystems · Security Boulevard
  3. Sonatype report shows malware surge · Crowdfund Insider
  4. Developers face a torrent of malware threats as malicious open source packages surge 188% · ITPro
  5. RSA Conference 2025 announcement summary (day 2) · SecurityWeek
  6. Sonatype spots another PyPI package behaving badly · The Register
  7. Sonatype shines a light on typosquatting in PyPI · The Register
  8. Popular 'coa' npm library hijacked to steal user passwords · BleepingComputer
  9. Hackers abused PyPI to secretly install cryptominers · Cyber Security News
  10. Malicious PyPI packages hijack dev devices to mine cryptocurrency · BleepingComputer
  11. New Linux, macOS malware hidden in fake Browserify npm package · BleepingComputer
  12. npm nukes NodeJS malware opening Windows, Linux reverse shells · BleepingComputer

Papers & patents

From GAN weather models with Los Alamos back to magnetotactic bacteria at Caltech.

  1. 2022
    Stochastic parameterization of column physics using generative adversarial networks
    Environmental Data Science, Cambridge University Press · with Los Alamos National Laboratory
    Paper
  2. 2022Abstract
  3. 2021
    US 10,897,979: System and method for hair dye color conversion
    Byrne, Christie, Nash & Adams · granted 26 Jan 2021 · assigned to SureTint Technologies
    Patent
  4. 2017Article
  5. 2008
    Mechanisms and evolution of magnetotactic bacteria
    PhD dissertation, Caltech · advisor Joseph L. Kirschvink
    Thesis
  6. 2006
    Bugbuster: survivability of living bacteria upon shock compression
    Willis, Ahrens, Bertani & Nash · Earth and Planetary Science Letters 247: 185–196
    Paper
  7. 2006
    Experimental observation of magnetosome chain collapse in magnetotactic bacteria
    Kobayashi, Kirschvink, Nash, Kopp, Sauer, Bertani, Voorhout & Taguchi · Earth and Planetary Science Letters 245: 538–550
    Paper
  8. 2004Abstract
  9. 1998
    Migration of the giant cloudless sulphur butterfly, Phoebis sennae: where and how?
    Proceedings of the Tennessee Academy of Science
    Paper

Disclosures & talks

Disclosure · Jul 2026

Markdown All Pro

Counterfeit VS Code extension reported to the Marketplace.

markdown.markdown-all-pro
Read the write-up
Disclosure · Oct 2026

Botnet C2 in agent skills

A ClawHub skill installing a miner that reports home without saying so.

bottube[.]ai · rustchain[.]org
Read the write-up
Video · Nov 2026

The Agent Behavior Index, explained

Interview on what coding agents do beyond their task.

Watch on Manifold ↗

Got a tip or a strange agent log?

Press, research collaboration and disclosure reports are welcome.