# Send Node.js Security Audit to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "nodejs-security-audit",
    "name": "Node.js Security Audit",
    "source": "tencent",
    "type": "skill",
    "category": "安全合规",
    "sourceUrl": "https://clawhub.ai/npfaerber/nodejs-security-audit",
    "canonicalUrl": "https://clawhub.ai/npfaerber/nodejs-security-audit",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/nodejs-security-audit",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=nodejs-security-audit",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "nodejs-security-audit",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T08:35:32.889Z",
      "expiresAt": "2026-05-06T08:35:32.889Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=nodejs-security-audit",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=nodejs-security-audit",
        "contentDisposition": "attachment; filename=\"nodejs-security-audit-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "nodejs-security-audit"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/nodejs-security-audit"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/nodejs-security-audit",
    "downloadUrl": "https://openagent3.xyz/downloads/nodejs-security-audit",
    "agentUrl": "https://openagent3.xyz/skills/nodejs-security-audit/agent",
    "manifestUrl": "https://openagent3.xyz/skills/nodejs-security-audit/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/nodejs-security-audit/agent.md"
  }
}
```
## Documentation

### Node.js Security Audit

Structured security audit for Node.js HTTP servers and web applications.

### Critical (Must Fix Before Deploy)

Hardcoded Secrets

Search for: API keys, passwords, tokens in source code
Pattern: grep -rn "password\\|secret\\|token\\|apikey\\|api_key" --include="*.js" --include="*.ts" | grep -v node_modules | grep -v "process.env\\|\\.env"
Fix: Move to env vars, fail if missing: if (!process.env.SECRET) process.exit(1);

XSS in Dynamic Content

Search for: innerHTML, template literals injected into DOM, unsanitized user input in responses
Fix: Use textContent, or escape: str.replace(/[&<>"']/g, c => ({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":"&#39;"}[c]))

SQL/NoSQL Injection

Search for: String concatenation in queries, eval(), Function() with user input
Fix: Parameterized queries, input validation

### High (Should Fix)

CORS Misconfiguration

Search for: Access-Control-Allow-Origin: *
Fix: Allowlist specific origins: const origin = ALLOWED.has(req.headers.origin) ? req.headers.origin : ALLOWED.values().next().value

Auth Bypass

Check: Every route that should require auth actually checks it
Common miss: Static file routes, agent/webhook endpoints, health checks that expose data

Path Traversal

Check: path.normalize() + startsWith(allowedDir) on all file-serving routes
Extra: Resolve symlinks with fs.realpathSync() and re-check

### Medium (Recommended)

Security Headers

const HEADERS = {
  'X-Frame-Options': 'SAMEORIGIN',
  'X-Content-Type-Options': 'nosniff',
  'Referrer-Policy': 'strict-origin-when-cross-origin',
  'Permissions-Policy': 'camera=(), microphone=(), geolocation=()',
};
// Apply to all responses

Rate Limiting

const attempts = new Map(); // ip -> { count, resetAt }
const LIMIT = 5, WINDOW = 60000;
function isLimited(ip) {
  const now = Date.now(), e = attempts.get(ip);
  if (!e || now > e.resetAt) { attempts.set(ip, {count:1, resetAt:now+WINDOW}); return false; }
  return ++e.count > LIMIT;
}

Input Validation

Body size limits: if (bodySize > 1048576) { req.destroy(); return; }
JSON parse in try/catch
Type checking on expected fields

### Low (Consider)

Dependency Audit: npm audit
Error Leakage: Don't send stack traces to clients in production
Cookie Security: HttpOnly; Secure; SameSite=Strict

### Report Format

## Security Audit: [filename]

### Critical
1. **[Category]** Description — File:Line — Fix: ...

### High
...

### Medium
...

### Low
...

### Summary
X critical, X high, X medium, X low
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: npfaerber
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T08:35:32.889Z
- Expires at: 2026-05-06T08:35:32.889Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/nodejs-security-audit)
- [Send to Agent page](https://openagent3.xyz/skills/nodejs-security-audit/agent)
- [JSON manifest](https://openagent3.xyz/skills/nodejs-security-audit/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/nodejs-security-audit/agent.md)
- [Download page](https://openagent3.xyz/downloads/nodejs-security-audit)