You secured your code dependencies, is that enough?

Bsides Kerala 2025

08 February 2025

AI Generated Summary

AI Generated Content Disclaimer

Note: This summary is AI-generated and may contain inaccuracies, errors, or omissions. If you spot any issues, please contact the site owner for corrections. Errors or omissions are unintended.

You secured your code dependencies, is that enough? was presented at Bsides Kerala in 2025. The talk challenges the assumption that securing code dependencies covers software supply chain security: after grounding the audience in SBoM and SCA, it walks through the chains nobody inventories, from browser extensions and IDE plugins to CI/CD systems, container images, dependency caches, and re-sold software, and closes with the ATOM framework as a plan of action.

Summary

The talk opened with its title as the question and a baseline check: had the audience heard of software supply chain security, SBOM, and source composition analysis tools? The why slide grounded urgency in incidents, SolarWinds, CodeCov, and Colonial Pipeline, and the responses they triggered: an executive order by the US President, the NIST SSDF framework, SLSA by Google, and 2024 CERT-In guidelines. A “why now” slide explained the acceleration: build automation shortens release cycles, faster feature releases reduce the inclination to upgrade dependencies, open source maintainers get attention without help, features and bug fixes cannot be segregated, and automated vulnerability notifications spin a hedonic hamster wheel.

Two grounding slides defined the basics. A Software Bill of Material is an itemized list of the ingredients in software, where ingredients mean third-party components, and SBoMs are mostly one level deep with other levels plugged into each other. SCA tools generate or consume SBoMs and identify outdated, insecure, and end-of-life software. Then came the pivot: software supply chains go beyond the code chain. Consumers deal with too many chains that are not in their awareness, and companies carry dependency chains far beyond code dependencies. Any software that lets third parties add or modify functionality extends the chain, whether pluggable modules, plugins, extensions, or theme customizations.

The “why do they matter” slide argued that production is hardened while dev is not, making less guarded paths easier to compromise, and smaller organizations are easier to infiltrate, occupy, or acquire. Developer machines are lucrative targets because they hold lots of credentials and access, run with a bit of lax security to get the job done, carry exceptions in network policy rules, mostly have admin access, and run multiple powerful apps like IDEs and debuggers. The case studies then followed under the banner that what you see is not what you get: curl-pipe-to-shell servers that detect curl versus browsers and deliver different content, backdoored Chrome browser extensions reaching 2.6 million devices, a malicious EditThisCookie impersonator, malicious VS Code extensions with millions of installs, APT and RPM pre and post install scripts as unexpected places for code execution, hijacked Notepad++ plugins plus a parasite impersonation website, CI/CD systems as essential watchers with NSA/CISA defending guidance and a TeamCity exploitation story opening SolarWinds-style scenarios, malicious containers on Docker Hub with container threats documented by Aqua Security, a Go module proxy caching exploit for malicious package persistence, a WordPress free plugin purchased and backdoored despite 300,000-plus installations, and rogue maintainers from peacenotwar sabotaging node-ipc to corrupt colors.js and faker.js updates and an npm malware civil war.

The closing plan slide introduced the ATOM framework: Awareness to identify and move unknown risks into known risks, Trust But Verify so every dependency, tool, and service is validated, Ongoing Monitoring for continuous security checks detecting changes and anomalies, and Measure and Map to build capabilities that answer real questions, such as how many machines have Chrome installed and how many plugins exist in GitHub workflows. A final “can of worms I have not touched” slide acknowledged the territory the talk left unexplored.

Key Themes

Notable Points

  1. Incident backdrop: SolarWinds, CodeCov, and Colonial Pipeline; resultant responses included an Executive Order by the US President, the NIST SSDF framework, SLSA by Google, and 2024 CERT-In guidelines.
  2. Why now: software build automation means quicker release cycles, automated release cycles mean less wait for features, faster feature release means less inclination to upgrade dependencies, and automated vulnerability notification is described as a hedonic hamster wheel.
  3. An SBoM is an itemized list of all the ingredients in the software, with ingredients meaning third-party components; SBoMs are mostly one level depth only, with other levels plugged into each other.
  4. SCA tools generate or consume SBoMs and identify outdated software, insecure software, and EOL products.
  5. Curl-pipe-to-shell: content can be delivered differently to curl and browsers, so the deck says don’t curl pipe to shell, and the demo line was curl https://anantshri.info/fun/legitimate.sh | bash.
  6. Browser and IDE chains: dozens of backdoored Chrome extensions discovered on 2.6 million devices; a malicious EditThisCookie extension impersonator; malicious VS Code extensions with millions of installs discovered on the marketplace.
  7. Unexpected code execution: APT and RPM support pre and post install scripts, and Notepad++ suffered hijacked plugin DLLs alongside a parasite impersonation website.
  8. CI/CD and containers: NSA/CISA guidance exists for defending CI/CD environments; global TeamCity exploitation opens the door to SolarWinds-style nightmares; malicious containers were found on Docker Hub with container-based threats documented by Aqua Security.
  9. Dependency caching: a malicious package exploited Go module proxy caching for persistence.
  10. Bait and switch and rogue maintainers: a WordPress free plugin purchased and backdoored with more than 300,000 installations; peacenotwar sabotaged npm developers through node-ipc over the invasion of Ukraine; the color.js and faker.js maintainer pushed corrupt updates triggering infinite loops of weird characters; an npm malware civil war involved 25 malicious packages, some posing as colors.js, and one called “lemaaa” designed to manipulate Discord accounts.
  11. Developer machine factors: lots of credentials and access, lax security to get the job done, exceptions in network policy rules, mostly admin access, and multiple powerful apps (IDE, debugger and more).
  12. The ATOM plan: Awareness (identify and move unknown risks into known risks), Trust But Verify (every dependency, tool, and service should be validated), Ongoing Monitoring (continuous security checks to detect changes and anomalies), Measure and Map (answer real questions like how many machines have Chrome installed and how many plugins exist in GitHub workflows).

Notable Quotes

“You secured your code dependencies, is that enough?”

“PRODUCTION IS HARDENED, DEV NOT SO MUCH”

“EASIER TO COMPROMISE LESS GUARDED PATHS”

“Show me data donโ€™t just imagine”

“Donโ€™t curl | sh”

“Package created with a good intent but later abused”