Blog

Posts tagged “Security”

ApiTraffic card: 'A model API key leaked. The first hour.' with a timeline: 00:00 revoke at the provider, 00:10 compare provider usage with your own log, 00:30 new key and deploy, 01:00 rotate every secret nearby. Source: Wiz Research, Oct 30 2026.
Security

A model API key leaked. The first hour, for a Node team

In October, stolen Amazon Bedrock credentials made about 2.5 million API calls before anyone stopped them. A first-hour runbook for a small Node team when a model provider key leaks: revoke, scope the damage from your own logs, then rotate the right way.

Jason Fill November 12, 2026 7 min read
Header: 'Your auth check passed. Now prove what the agent did.' beside an illustrative request log of one agent run, including a duplicate refund and a denied DELETE.
Security

Your auth check passed. Now prove what the agent did.

An agent calls your API with a valid token, the scopes allow it, and the write lands with a clean 201. Nobody asked for it. Here's how to fix authorization for agents first, then build an audit trail that shows exactly what the agent did.

Jason Fill November 12, 2026 7 min read
Illustrative request log for user u_118: POST /orders 201, the payment step skipped, then POST /orders/8812/confirm 200, flagged reason=step_skipped missing=payment. Headline: Every request got a 200. Nobody paid.
Security

API business logic abuse: requests that are valid but wrong

Akamai says 61% of API attacks in 2025 involved unauthorized workflows, double the year before. Four examples for a small SaaS, how to map the expected order of calls, and Express code to catch the ones that skip a step.

Jason Fill November 9, 2026 5 min read
401 vs 403 in your API logs: illustrative log lines showing a burst of 401s on POST /login from one IP ending in a 200, then 403s on sequential invoice IDs
Debugging

401 vs 403 in your Node API logs: what each pattern means

401 and 403 look alike in a log but answer different questions. What each means under RFC 9110, four auth patterns worth an alert, how to return the right one in Express and Fastify, and five searches to run on last week's logs.

Jason Fill November 8, 2026 4 min read
Terminal showing a gitleaks pre-commit hook blocking a commit that adds an API key to .mcp.json, next to the headline 'Catch secrets before they reach git.'
Security

Catch secrets before they reach git: a pre-commit check for Node repos

GitGuardian found commits co-authored by Claude Code leaked secrets at 3.2%, twice the 1.5% baseline. A 10-minute pre-commit secret scan for Node repos, a CI backstop for --no-verify, and what to do when a key slips through anyway.

Jason Fill November 7, 2026 3 min read
Header image: Scanners want your .env and your .mcp.json
Security

Block .env and config-file probes in Express and Fastify

One site logged 1,028 requests for credential paths in a day, including /.mcp.json and other AI tool configs. How to check none can succeed, return a fast 404 in Express and Fastify, and block the IPs doing it.

Jason Fill November 6, 2026 4 min read
Before and after: a Node.js login that answered 401 'Wrong password' or 404 'No account' with different timings now answers 401 'Invalid email or password' in about 33 ms for both real and unknown emails.
Security

Stop user enumeration on your Node.js login, signup and reset endpoints

AI agents made hundreds of millions of requests to login pages in the first half of 2026. If your API answers differently for real and unknown emails, it hands them a target list. Here's how to make login, reset and signup give one answer.

Jason Fill November 5, 2026 6 min read
Header: 'Webhooks that fail one time in ten.' beside an illustrative webhook log: a 401 signature mismatch on an amount of 24.50, the same event handled twice after a slow 4.1 s response and a retry, and a fast queued 200.
Debugging

Debugging webhooks in Node: failed signatures, retries and duplicate events

Webhook bugs rarely reproduce on your laptop: a signature check that fails one time in ten, the same event processed twice, a retry storm after a slow deploy. Here's the fix for each, plus how to get the exact request in front of you.

Jason Fill November 5, 2026 6 min read
Header: 'Log every model call. Then count the ones you didn't make.' beside an illustrative daily reconcile table of provider usage against logged calls per key fingerprint, with one key showing 117 unexplained calls, and a sample JSON log line with model, keyId, customerId, status and token counts.
Security

Log every LLM API call your Node app makes

October's AI platform breaches leaked model provider keys, and one stolen key ran about 800,000 calls in 30 hours. How to log every LLM call from Node with tokens, customer and a key fingerprint, then reconcile against provider usage to catch calls your code didn't make.

Jason Fill November 4, 2026 5 min read
What to track in your API traffic: an illustrative request log flagging a 5xx spike on /checkout, a changed response shape, one key walking 2,400 user IDs, login failures across 380 accounts and a slow p99.
Monitoring

API traffic monitoring: what to track, and how to set it up for a Node API

Your uptime check is green and a customer says the API has been timing out for an hour. API traffic monitoring keeps the requests that explain it. Here's what to track, how to capture it in Node with working code, and the queries that turn traffic into answers.

Jason Fill November 2, 2026 7 min read
Lock down npm installs: headline 'Turn off install scripts before an agent runs npm install' with .npmrc ignore-scripts=true, npm rebuild and npm ci commands, and Safeguard's count for 26 to 28 Oct 2026: 96 malicious npm packages, 112 malware advisories.
Security

Lock down npm installs when an AI agent adds your dependencies

In late October, 96 malicious npm packages appeared in three days, several running code at install time. How to turn off install scripts in npm and pnpm, allow the few builds you need, and review every dependency an AI agent adds.

Jason Fill October 30, 2026 4 min read
What small Node teams should log in the AI-attack era. Cover graphic for a guide to logging API requests to spot bot attacks.
Security

What small Node teams should log in the AI-attack era

Bots are now more than half of web traffic, and 27% of attacks target APIs and identity systems. You don't need a security team to see it, just the right fields on every request. Here's the minimum to capture, five patterns to watch, and when to block.

Jason Fill October 27, 2026 8 min read