Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/macromania/agentop/securitynpx skills add macromania/agentop --skill securitygit clone --depth 1 https://github.com/macromania/agentopWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00052 | $0.02967 |
| Opus 5 | $0.00026 | $0.01484 |
| Sonnet 5 | $0.00010 | $0.00593 |
| Haiku 4.5 | $0.00005 | $0.00297 |
Grade A, and why
security scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
exec: require('child_process').exec, // Never do this! How it starts
The opening of the file, as written. The whole thing — 476 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Security Best Practices
Security patterns and practices for building secure Electron applications with proper input validation, authentication, and defense against common vulnerabilities.
When to Use This Skill
- Implementing authentication/authorization
- Handling user input
- Managing secrets and API keys
- Processing external data
- Reviewing code for security issues
- Setting up Electron security
Core Security Principles
Defense in Depth
Layer multiple security controls:
// Layer 1: Input validation at entry point
function handleUserInput(input: string): void {
const validated = validateInput(input);
// Layer 2: Sanitization before processing
const sanitized = sanitizeForProcessing(validated);
// Layer 3: Parameterized queries (no string concatenation)
await db.query('SELECT * FROM items WHERE name = ?', [sanitized]);
// Layer 4: Output encoding for display
const encoded = encodeForHTML(sanitized);
}
Principle of Least Privilege
Request only necessary permissions:
// ❌ Overly permissive
mainWindow = new BrowserWindow({
webPreferences: {
nodeIntegration: true, // Dangerous!
contextIsolation: false, // Dangerous!
}
});
// ✅ Minimal permissions
mainWindow = new BrowserWindow({
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
sandbox: true,
webSecurity: true,
preload: path.join(__dirname, 'preload.js'),
}
});
Electron Security
Secure Window Configuration
// src/main/window.ts
export function createSecureWindow(): BrowserWindow {
const mainWindow = new BrowserWindow({
width: 1200,
height: 800,
webPreferences: {
// Security essentials
nodeIntegration: false,
contextIsolation: true,
sandbox: true,
webSecurity: true,
allowRunningInsecureContent: false,
// Preload for safe IPC
preload: path.join(__dirname, 'preload.js'),
},
});
// Prevent navigation to external URLs
mainWindow.webContents.on('will-navigate', (event, url) => {
const allowed = ['http://localhost:', 'file://'];
if (!allowed.some(prefix => url.startsWith(prefix))) {
event.preventDefault();
console.warn('Blocked navigation to:', url);
}
});
// Prevent new windows
mainWindow.webContents.setWindowOpenHandler(({ url }) => {
shell.openExternal(url); // Open in system browser
return { action: 'deny' };
});
return mainWindow;
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 476 lines · 52 tokens per session scan A 3e438d9a60b2
security is a skill published in the GitHub repository macromania/agentop (10 stars, last pushed 5mo ago), licensed MIT. It adds 52 tokens to every session and 2,967 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
aatmf-t10-confidentiality-breach
AATMF T10 — Integrity & Confidentiality Breach. System prompt extraction, training-data extraction, model-weight leakage, private-key recovery.
peekaboo
Capture and automate macOS UI with the Peekaboo CLI.
mochi-remind
Handle due reminders — notify the user with natural language and mark them done.
publish-registry
Publish @agentos-software/ registry packages from AgentOS. Use whenever the user asks to publish or release registry software/agent packages.
sidewinder-rattlesnake
Adversary-emulation profile for SideWinder (G0121 / Rattlesnake / T-APT-04 / Razor Tiger), India's suspected state-sponsored cyber-espionage actor.
lazarus-group
Adversary-emulation profile for Lazarus Group (G0032, aka Hidden Cobra / Diamond Sleet / Labyrinth Chollima), a North Korean RGB-linked actor conducting espionage, destructive, and financially motivated operations.