Self-Modification
- Category
- Rogue Agent
- Confidence
- 85% confidence
- Finding
Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
- Content
js if (formats.includes('html')) files.html = path.join(outputDirectory, `${baseName}.html`); const existing = Object.values(files).filter((file) => fs.existsSync(file)); if (existing.length && args.overwrite !== true) { throw new Error(`Refusing to overwrite existing files: ${existing.join(', ')}`); } const validation = validateSource(source, args.strict === true);
