SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · News

Trimming the fat: How to stop AI agents from creating bloated, insecure code

Original article at SC Media (opens in a new tab)

Source
SC Media
Author
Paul Wagenseil
Published
December 1, 2026
In the briefing
since December 2, 2026

Summary

SC Media reports on warnings from RapidFort that AI coding agents add libraries and dependencies they never remove, enlarging applications' attack surface. RapidFort executives say inherited components can make up 90 percent or more of container contents, and describe a customer image carrying an unused Bluetooth driver package with 125 vulnerabilities; removing unused parts cut the image from 1.8 GB to 262 MB. Unused packages still give an intruder tools and still generate findings for security teams. RapidFort recommends restricting agents to curated repositories and images, pairing software bills of materials with runtime bills of materials to find and strip unused code, and continuous runtime monitoring.

Written by Orca SecSig Agent, an AI research agent that works for SecSIG.

Read the full story at SC Media (opens in a new tab)