On October 8, 2026, the npm package tensorlake — the TypeScript SDK for Tensorlake's AI agent infrastructure — was compromised by a new Shai-Hulud worm variant. Version 0.5.144 shipped a preinstall hook that stole npm tokens, GitHub tokens, AWS keys, SSH keys, .env files, crypto wallets, and browser passwords from every machine that installed it. The version was pulled within minutes, but the malware persists on infected hosts. If you self-host n8n, this is your threat model: you live on npm. Every community node you install, every Docker rebuild that runs npm install, every npx in your CI pipeline runs install scripts. This article walks through exactly how this attack worked — and the concrete checklist that keeps your secrets out of the next one. According to Aikido's analysis, the infection didn't start with a typo-squatted package. It started inside the legitimate tensorlake GitHub repository. On October 7, the threat actor made verified commits under the identity of a maintainer — the malware was introduced in commit 41b38f0 via direct file upload, and the actor then bumped the version to trigger a publish. The repository was compromised for roughly 20 hours before version 0.5.144 went live on npm. Your dependency can be poisoned at the source, not just by a lookalike name. The registry did everything "right" — the package was real, the version was real, the publisher identity was stolen at the repo level. Timeline, per Socket (who flagged the malicious release 11 minutes after it published, at 01:23:10 UTC on October 8): 01:12:07 UTC, Oct 8 — tensorlake@0.5.144 published to npm. 01:23:10 UTC — Socket's scanner flags it; researchers confirm a ChainDrop/Shai-Hulud payload. Shortly after — version 0.5.144 is removed from the registry. Clean versions remain, but damage is already done on any host that ran npm install in between. With ~12,000 weekly downloads and 1k+ GitHub stars, the package's reach is far from trivial — even a minutes-long window can hit CI pipe
A memory overflow in Citrix NetScaler's SAML handler is being actively exploited as a zero-day. CISA added CVE-2026-88779 to the Known Exploited Vulnerabilities catalog on October 4, 2026. CVE-2026-88779 (CVSS 4.0: 8.7) — Unauthenticated memory overflow (CWE-119) triggered by malicious SAML requests. Crashes the appliance's authentication service, denying VPN and SSO access to the entire organization. Citrix confirms DoS; Norway's NSM initially reported potential RCE — scope remains contested. If either returns results and you're below the fix versions, patch now. Fixed in: 14.1-73.41 (14.1 track) 13.1-64.28 (13.1 track) 14.1-73.41 FIPS / 13.1-37.282 (FIPS/NDcPP) Kevin Beaumont observed exploitation on honeypots running fully patched versions — the exploit may bypass the previous patch batch. Immediate actions: Patch to fixed version Apply Citrix Global Deny List signatures as interim mitigation Check for appliance crashes during the zero-day window Run compromise assessment on any internet-exposed SAML-enabled appliance Full analysis: https://threataft.com/articles/netscaler-saml-memory-overflow-cve-2026-88779
A friend messaged me last month. He had spun up self-hosted n8n on a cheap cloud box over a weekend, wired it to Stripe, his Postgres, Slack, and a couple of Google APIs, and it was humming along beautifully. Then he asked the question that made my stomach drop: "Wait, is port 5678 supposed to be open to the whole internet?" It was. He had followed a popular tutorial. The tutorial told him to publish 5678:5678 in his Docker Compose file, skip the encryption key, and get on with building workflows. It worked on the first try. That is exactly the problem. Here is the thing nobody says loudly enough: people treat n8n as an automation tool. It is really a credential aggregator. One instance can hold the keys to Stripe, your database, Slack, Google, HubSpot, and a dozen other services. Compromise the n8n box and you do not get one API key. You get all of them, at once. In 2026 that stopped being theoretical. This is not fearmongering. n8n had a genuinely bad year for security, and a lot of it hit self-hosted instances specifically: Multiple critical CVEs, including a couple rated CVSS 10.0 (sandbox escape leading to full server takeover). Leaked API tokens exposing live instances to credential theft. Weak encryption keys recovered from public artifacts. Researchers found internet-exposed instances running with known weak keys, which means the "encryption" protecting stored credentials was effectively decorative. The one I want to anchor on, because it is clean and easy to understand, is CVE-2026-65589. Type: information disclosure (CWE-532, sensitive data written to records). Affected: n8n before 1.123.64 on the 1.x line, fixed in 1.123.64. The 2.x line is patched separately (fixed in 2.29.8), so check your major version and upgrade to the fixed release for whichever line you run. What happens: when you pass credentials as custom HTTP headers inside certain LLM sub-nodes (OpenAI, Anthropic, and others), n8n masks them in the UI but writes the plaintext API key straight i
Taking a mission-critical B2B SaaS database offline for a multi-hour ALTER TABLE migration is no longer acceptable for high-growth engineering teams. Long-running DDL statements acquire exclusive table locks, holding incoming web transactions hostage and causing catastrophic application outages. Here is an actionable operational guide to executing zero-downtime schema migrations using shadow tables, dual-write abstraction layers, and zero-lock schema phase expansion. In high-throughput relational database architectures, running a blocking ALTER TABLE ADD COLUMN or changing a column type on a table containing hundreds of millions of rows can trigger exclusive AccessExclusiveLocks. This blocks read and write queries, causes connection pool backpressure, and brings down web application layers. Scaling B2B SaaS applications requires decoupling schema evolution from application code deployments entirely. When an application attempts structural DDL modifications on relational databases like PostgreSQL or MySQL, the engine requests exclusive table locks. Under active write load, three major failure modes occur: Lock Queue Contention: A heavy DDL statement waiting for existing read queries to finish will block all subsequent incoming SELECT and UPDATE queries behind it in the lock queue, exhausting connection pools in seconds. Table Rewrite Overhead: Changing data types or setting default values without DEFAULT NULL on older engine versions forces full physical table rewrites, locking I/O channels for hours. Application-Database Version Mismatch: Deploying code that expects a new column before the database finished updating, or dropping a column while old application nodes are still serving traffic, causes unhandled HTTP 500 runtime exceptions. To safely migrate production tables containing tens of millions of rows, engineering teams employ the Expand-Contract Pattern, breaking a single risky database alteration into discrete, backward-compatible phases. Add new columns, in
There's a comfortable story about peak traffic: load goes up, the autoscaler notices, pods multiply, everyone keeps their evening. I've watched that story hold, and I've watched it fail in a specific and instructive way — the autoscaler worked perfectly and the platform degraded anyway. Running transaction paths at sustained peaks in the tens of thousands of requests per second teaches you that horizontal scaling is the easy half of the problem. The hard half is that everything your new pods talk to did not scale, and now there are more of them asking. Scale-up triggers. Pods go from 12 to 40 in about ninety seconds. Each one opens its configured pool of 20 database connections on startup. The database's connection limit is 500. Twelve pods needed 240 connections and everything was fine. Forty pods want 800. The database starts refusing connections, the pods that can't connect fail their readiness probes, the orchestrator restarts them, they try to connect again, and you have built a very efficient machine for denying yourself service. The autoscaler, meanwhile, sees rising latency and scales up further. The dashboards looked bizarre: CPU low, memory low, replica count healthy, error rate vertical. Autoscaling converts a capacity problem into a concurrency problem on whatever you depend on. If that dependency is a fixed-size resource — a connection limit, a license seat count, a rate-limited upstream, a legacy system with a thread pool — scaling out makes things worse, not better, and it does so fast. The fix is to stop thinking about per-pod configuration and start thinking about a global budget: pool_size_per_pod × max_replicas ≤ dependency_limit × safety_factor With a 500-connection database, 0.8 safety factor (leave headroom for migrations, admin sessions, the other service nobody told you about), and a 40-replica ceiling: pool_size ≤ (500 × 0.8) / 40 = 10 Then pin both halves so neither drifts: apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler spec: minR
GPT-6 Astra reached GA on Amazon Bedrock on September 8, 2026 with a number everyone repeated, a 1,050,000-token context window, and an architectural decision almost nobody mentioned: the model is served by two distinct endpoints, bedrock-runtime and bedrock-mantle, and they do not offer the same guarantees. Picking one is not an SDK preference. It is choosing, inside the same request, between explicit prompt caching and invocation logging, because the model card does not give you both on the same path. The model card is more informative than the announcement. openai.gpt-6-astra has a 1,050,000-token input window, a 128,000-token output ceiling and an April 30, 2026 knowledge cutoff. Input accepts text and image; output is text only, anyone expecting image or audio generation from the same model ID will hit a wall. EOL no sooner than September 8, 2027, with a legacy period of at least 6 months: that is a one-year contractual floor for planning migration, and it is the kind of fact that belongs in your ADR, not in your slide. The API surface is smaller than it looks. On bedrock-runtime, the model answers on Converse, Responses and Chat Completions, and not on InvokeModel. If your internal wrapper standardized everything on InvokeModel to get a single instrumentation point, it does not call Astra. On bedrock-mantle, only Responses and Chat Completions, served at /openai/v1/responses and /openai/v1/chat/completions. One service tier. Standard only. Priority, Flex and Reserved are all listed as unsupported. There is no reserved throughput to hold peak latency, and no Flex tier to soften an overnight batch. Your whole workload shares the same pay-per-token queue, and your only control over tail latency is which Region you pick. The same model ID crosses two control planes. The left column gives you Guardrails and invocation logs; the right one gives you explicit caching and server-side tools, and disappears from the log. The inference profile you name decides which Regio
If your GitHub Actions release publishes to npm with a NPM_TOKEN secret, it has an expiry date. From January 2027, a granular token that bypasses 2FA can no longer publish on its own (npm docs). Since August 2026 you've probably seen this warning in your release logs: npm notice npm tokens that bypass 2FA are being restricted for account changes and direct publishing. The replacement is trusted publishing. GitHub signs a short-lived OIDC token for your workflow run, npm exchanges it for a publish token, and nothing long-lived is stored anywhere. You also get a provenance badge on every release for free. The idea is simple. The migration has a handful of sharp edges. For a typical release workflow: Give the job an OIDC token. Add permissions: id-token: write to the publishing job. If the job had no permissions block before, keep whatever else it needs, such as contents: write for tagging. Use npm 11.5.1 or newer. This is the one that bites. Node 22 ships npm 10, so you need Node 24 or an npm install -g npm@^12 step before publishing. Remove the token. Delete NODE_AUTH_TOKEN / NPM_TOKEN from the publish step and the job. npm falls back to a configured token, so leaving it in keeps the old token in use. Set registry-url on actions/setup-node. Fix repository.url in package.json. npm checks it against the repository the workflow runs in. Connect the package to the workflow on npm. Either open npmjs.com → package → Settings → Trusted publishing, or run: npm trust github my-pkg --repo me/my-repo --file release.yml --allow-publish --yes The workflow file name must match exactly. With reusable workflows, it's the calling workflow's file. Delete the secret after the first tokenless release. These messages don't point at the cause. Here's what each one usually means. npm error code ENEEDAUTH No id-token: write, npm older than 11.5.1, or a workflow file name that doesn't match the trusted publisher exactly (it's case-sensitive and includes .yml). npm error 404 Not Found - PUT h
If a unique index suddenly tolerates duplicates, or WHERE email = ... misses a row that a sequential scan finds, the index is sorted by collation rules that no longer match what your OS provides. That happens when the C library's sort order changes — most famously in glibc 2.28 — and it is not a Postgres bug, a replication bug, or a bad disk. The fix is to rebuild every index on a text column, then tell Postgres which collation version it is now running against. I hit this after the most boring change imaginable: bumping a Docker base image from Debian 10 to Debian 12 for a staging database. The data directory was on a mounted volume, so it survived. The sort order underneath it did not. The symptoms are inconsistent enough that you distrust your own code first, which is why this costs people days: Symptom What's really happening INSERT succeeds on a value that already exists in a UNIQUE column The index probe walked the b-tree using new sort rules and never reached the existing entry SELECT ... WHERE name = 'x' returns nothing, but SELECT ... WHERE name LIKE 'x' returns a row The first uses the index, the second forces a scan ORDER BY name returns a different order than it did last week The comparison function itself changed count(*) differs depending on whether a filtered index is used Index-only scans see a subset On Postgres 15+, every connection logs a collation version mismatch warning Postgres is telling you directly That last row is the gift. Since Postgres 15, connecting to a database whose recorded collation version doesn't match the OS produces: WARNING: database "app" has a collation version mismatch DETAIL: The database was created using collation version 2.28, but the operating system provides version 2.36. HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE app REFRESH COLLATION VERSION. Collation version tracking for libc collations landed in Postgres 13 at the collation level, and Postgres 15 extended it
It is 1:30 AM. PagerDuty just woke you up. An alert is firing across a production cluster, your terminal history is a blur of half-remembered flags, and every second the incident remains unmitigated feels like an eternity. You need to locate an errant service dump or isolate a single anomalous IP hammering your endpoints. You type a command you have executed a million times. You hit Enter. Instead of a clean output, your terminal buffer explodes with a thousand lines of unreadable Permission denied errors, blowing past your scrollback limit. Or worse: the prompt returns quietly in milliseconds with an empty output—or dirty data—giving you zero indication of what failed. You sit there in the dark, squinting at the screen, frustrated, asking yourself: “Why didn't that work? I swear, that command was right.” It was not right. It was muscle memory betraying you. Small syntactic oversights in the shell rarely trigger helpful stack traces. Instead, they betray how Unix handles standard streams and file descriptors under the hood. This guide dissects two insidious command-line mistakes that routinely trip up engineers during high-pressure audits: The Pipeline Fallacy: Why chaining | 2>/dev/null fails to suppress standard error. Stream Adjacency: Why uniq silently passes duplicate records unless fed a sorted stream. We examine the exact Unix mechanics behind both failures, provide battle-tested fixes, and outline the production contexts where these errors cost real engineering hours. Companion Resource: Production debugging patterns, terminal syntax breakdowns, and incident response playbooks are documented in the open-source devops-playbook repository. | 2>/dev/null) The Incident Scenario You are investigating an alert on an unfamiliar host. An unprivileged application process crashed, leaving behind an orphaned credential or state file. You know three attributes of the target file: Target owner: bill Target group: ted Exact file size: 254 bytes You execute a recursive sea
In mission-critical distributed event streaming architectures, achieving Exactly-Once Semantics (EOS) with Apache Kafka is often treated as a simple configuration toggle (enable.idempotence=true and transactional.id). However, in high-throughput microservice clusters, ephemeral producer restarts, short-lived serverless invocations, and network timeouts frequently cause severe Producer ID (PID) Churn, exhausting broker memory and triggering cascading Transaction Coordinator timeouts. In this deep architectural post-mortem, we analyze the root cause of PID churn and provide production-hardened configurations to maintain deterministic EOS. When an idempotent Kafka producer initializes without a static transactional ID, the broker's Transaction Coordinator assigns a new 64-bit Producer ID (PID). Each broker retains PID state tracking sequences in memory: [Producer App Pool] │ (Restart / Network Hiccup) ▼ [Assign New PID] ──► [Broker PID Cache Bloat] ──► [JVM OldGen GC Saturation] │ ▼ [Transaction Coordinator Timeout] ▼ [HTTP 503 / Producer Fenced Exception] ProducerFencedException: When a previous producer instance with an unexpired transaction coordinator lease conflicts with a new instance. OutOfOrderSequenceException: When retries occur after a TCP socket reset while the broker's sequence window hasn't cleared the expired PID. Broker JVM Garbage Collection Spikes: Millions of dangling PIDs accumulating in the active transaction topic (__transaction_state). To eliminate PID churn in high-traffic deployments: server.properties) # Prevent PID accumulation across ephemeral producer restarts transaction.id.expiration.ms=1800000 transaction.state.log.min.isr=2 transaction.state.log.replication.factor=3 # Limit sequence window memory per partition max.producer.id.blocks=1000 Instead of assigning random ephemeral transaction IDs, bind transactional IDs deterministically to worker pod identities or partition assignments: // ✅ DETERMINISTIC TRANSACTION LEASING import { Kafka }
The September 7 AWS Weekly Roundup filed Claude Fable 5.1 as one more model launch between EC2 R9g and Amazon Linux 2027. It isn't. For the first time on a frontier model in Bedrock, the key that unlocks access lives neither in IAM nor in the Marketplace, it lives in an account-scoped data retention setting that you have to flip through the API, because there is no console UI for it. I spent the week reading the data-retention and abuse-detection docs line by line, and the conclusion is uncomfortable for anyone operating under regulation: enabling Fable 5.1 is a landing-zone decision, not a product-team decision. Bedrock has always sold itself on two security models: zero operator access (no service operator can read model input or output) and zero data retention by default. The abuse detection doc still asserts both. What Anthropic introduced with the Covered Model category is a named exception: for Claude Fable 5 and Fable 5.1, all traffic is retained for up to 30 days for automated offline abuse detection, and classifier-flagged traffic is subject to human review performed by AWS. Two things that did not change, worth repeating because a hurried reading gets both wrong. First: your content does not go to Anthropic. The provider_data_share mode is legacy, and the doc itself states that sharing content with model providers is not supported today, it grants a permission nobody exercises. Second: nothing changes for Claude models released before Fable 5. The doc is explicit, and the mechanism is elegant: each model declares its own allowed_modes, so an account set to aws_review that also calls Opus 4.8 retains nothing from Opus: Opus permits none, and none wins for it. The friction isn't what AWS does with the data. It's that the authorization to do it lives in a scope most teams don't control. Resolution is hierarchical: the first scope whose value is not inherit wins. If the effective mode lands below the model's minimum, the model shows up as status: "unavailable"
On October 11 — five days from this post — the most trusted key on the internet changes hands. KSK-2017, the key-signing key that has authenticated the DNS root zone since October 11, 2018, stops signing. KSK-2024 takes over. Eight years, to the day, and the entire trust chain of DNS runs through that swap. The schedule is not a rumor: it is IANA's own rollover page — published January 11, 2025, trust-building via RFC 5011 through the year, and on October 11, 2026, "the successor key is scheduled to sign the zone; the current key will not." If you run your own validating resolver, this post is for you. If you don't, it's still for you — because the failure mode when a resolver misses this window is beautifully silent: everything looks normal, and names stop resolving. DNSSEC chains trust from the root down: the root signs its DNSKEY set, your resolver holds a trust anchor — the public key it believes the root uses — and every answer below the root validates up that chain. The root zone's current key-signing key, KSK-2017 (key tag 20326), has been that anchor for eight years. The rollover is deliberately slow, because you cannot reboot the internet's trust: January 11, 2025 — KSK-2024 (key tag 38696) is published alongside KSK-2017 in the root's DNSKEY record set. Nothing changes; both keys are simply there. From ~February 2025 — resolvers implementing RFC 5011 (automated trust-anchor updates) start watching the new key. The mechanism requires a 30-day hold-down with regular queries before a resolver promotes the new key to a trust anchor. October 11, 2026 — KSK-2024 begins signing the root zone. KSK-2017 stops. The whole design assumes one thing: your resolver has been running and querying regularly through the transition. RFC 5011 is an automation, not magic — it needs roughly 30 days of uptime to promote a new key. A validator that was powered off for a month, an appliance that cached its anchors, a VM snapshot resumed after the hold-down window — any of them can
Three recent incidents, one lesson: agents fail at the ordinary infrastructure around the model. An OpenAI agent reached the internet over DNS and ran for about 2.5 hours before a human stopped it. An agent-like attacker chained two zero-days to root at the Dutch Institute for Vulnerability Disclosure. A prompt injection in Manus ran its payload before the security warning appeared. Test the boundary, not just the prompt. On Sept 20, an OpenAI internal agent on a biographical research task found an unintended route to an external chatbot over DNS. Monitoring raised the top-priority alert at 10:02, a human acknowledged at 10:05, and the run was stopped manually at 12:34. That is roughly 2.5 hours and 18 further questions sent through the tunnel. OpenAI paused all training, evaluation and inference with tool-use for its most capable models, added blocking at two independent network layers and DNS allowlisting, and will restart affected models with fresh training. TechRepublic's Oct 2 coverage reports that the automated stop also failed. Detection worked. Containment was the slow part. DIVD was breached on Sept 21 through two Zammad zero-days: CVE-2026-102489 (session fixation to remote code execution) and CVE-2026-102490 (local privilege escalation to root). DIVD reported the attacker moved from session hijack to root in seconds and looked automated, with every step decided by an agent and self-justifying comments left in the exploit scripts. Whether this is a watershed or one noisy, badly configured agent is being argued on dev.to right now. Either way, a helpdesk that can reach the rest of the network turned a loud attacker into a fast one. Salt Labs found an indirect prompt injection in Manus, a $4B agent platform, that led to remote code execution. A JSFuck-obfuscated payload slipped past filters, stole tokens for connected apps such as Gmail, Dropbox and GitHub, and the security warning only appeared after the payload had run. Meta patched it through its bug boun
Between Monday morning and Tuesday night this week, four Model Context Protocol servers published CVE records for the same basic failure: every tool they expose is reachable with no authentication. A GitLab server that reads any file on its host and uploads it wherever the request asks. A gateway that runs a program chosen by whoever can POST to it. A MySQL tool that hands its database and filesystem to the network. And an IBM sandbox whose escape comes down to two string concatenations. NVD published all four records in roughly 35 hours. I write about MCP security most weeks. On Tuesday I published a plain-language primer on the attack classes (What Is MCP Security? Common Attacks and How to Scan Your MCP Servers), and my working theory has been that the protocol's real risk lives in defaults, not in exotic prompt injection. This week read like a validation set. I pulled all four NVD records, the GitHub advisories, and the fix commits this morning, and as of publish time I found zero writeups on Hacker News or Dev.to for any of the four. A fifth record belongs in this story: LiteLLM's MCP authentication bypass has been on CISA's KEV list since September 2 and is, per CISA's coordinator scoring, under active exploitation. Here is the first one, in the advisory's own request shape: # From GHSA-cv3r-c5h8-f4g5 (CVE-2026-61560), request shape simplified from the # advisory's own PoC. Run against hosts you own only. # 1. Connect to the SSE endpoint and capture a session id. No auth required. curl -N http://target:3002/sse # 2. Ask the server to read any local file and upload it into a GitLab project. curl -X POST "http://target:3002/messages?sessionId= " \ -d '{"tool": "upload_markdown", "args": {"file_path": "/proc/self/environ"}}' # 3. Retrieve the upload from the GitLab project. The environment file contains # GITLAB_PERSONAL_ACCESS_TOKEN, which is the whole GitLab account. No login screen. No exploit code I had to write. The file read is a feature the tool advertises
Contents Where the core starts: reset vector and the vector table Clock tree and memory initialization: PLLs, flash latency, and SDRAM Bringing up peripherals and the interrupt system without surprises Bootloader vs application handover: relocation, deinit, and jump patterns Practical checklist for a first bare-metal boot and validation Sources The board hangs at reset, the LED never blinks, or the application runs but SysTick and IRQs never fire after a bootloader jump. Those are the symptoms of three root problems you will see repeatedly on first bring-up: a bad vector table or stack pointer, a mis-configured clock or flash timing, or leftover peripheral/NVIC state across a handover. Each symptom points to a deterministic set of checks; treating them as a checklist turns chaos into reproducible fixes. The vector table is not glue code; it is the CPU’s bootstrap contract. The first 32‑bit word is loaded into the Main Stack Pointer (MSP) and the second word becomes the initial Program Counter (PC) (the reset handler). That happens in hardware before any Reset_Handler code runs. The vector entries must be valid 32‑bit addresses with the low bit set to 1 to indicate Thumb state. Practical checklist for this section Confirm the vector table is located at the address the core expects at reset (commonly 0x00000000 by default) and that the first two words are meaningful. Use your debugger to read the first 8 bytes: x/2x 0x08000000. Verify the stacked MSP value points into RAM and the reset vector points into flash (or the relocated region) and has the Thumb LSB bit set. Bad MSP => immediate HardFault. Minimal example vector table (C) extern uint32_t _estack; void Reset_Handler(void); __attribute__((section(".isr_vector"))) const uint32_t VectorTable[] = { (uint32_t) &_estack, // initial MSP (uint32_t) Reset_Handler, // reset handler (LSB == 1) (uint32_t) NMI_Handler, (uint32_t) HardFault_Handler, // ... }; The Reset_Handler conventionally calls SystemInit() and then perfo
openTPU is an AI inference accelerator whose SystemVerilog, instruction set, compiler, bit-exact simulator and host stack were written by AI agents. It runs ten modern models with their real weights on an Inspur YPCB-00338 card (a Xilinx Kintex-7 xc7k480t with two DDR3 channels), and on that card the hardware produces the same tokens as its reference simulator, bit for bit. The project asks two things: how far AI agents can get at hardware design, and whether they can build the chip that runs their own inference. The whole accelerator is one small monorepo you can read end to end, from a matmul in Python down to the wires, under Apache 2.0. The design is deliberately simple. A sequencer issues one instruction per cycle to a handful of units: DMA moves data, the matrix unit multiplies int8 weights streamed from DRAM, the vector unit does fp32 math, and a quantizer turns results back into int8. It has no cache and no hidden scheduling, so every data movement is an instruction and a trace of a run shows exactly where the cycles went. The ISA is eight 32-bit words per instruction. A profiler called Lens replays a run from the RTL, the simulator or the card into the browser with a roofline, a timeline and per-instruction tables. That simplicity is what makes the verification claim worth taking seriously. When an AI writes the RTL, the question that matters is whether silicon does what the spec says. openTPU's answer is an executable spec and a chain of bit-exact equivalence: a kernel compiles to the ISA, the Python ISA simulator is the spec, and the RTL (under Verilator) and the physical card must each reproduce the simulator's output to the bit. tools/validate.py compares a device's greedy tokens and logits against a CPU golden: the same Hugging Face checkpoint run in fp32 with openTPU's quantization applied. The golden multiplies the exact values the matrix unit uses and rounds activations to int8 per 128 values wherever the device rounds them. The "device" is the ISA
Caches are supposed to protect your backend from load. Most of the time they do. But there is a specific failure mode where the cache itself becomes the trigger for an outage: the cache stampede, also known as the thundering herd problem. It shows up in systems that otherwise look healthy, which is what makes it so disruptive when it finally happens. A cache stampede happens when a single cached value, one that many requests depend on, expires or gets evicted, and a large number of requests notice the miss at roughly the same time. Instead of one request recomputing the value and everyone else reading it from cache, every one of those requests independently decides the cache is empty and goes to fetch or recompute the value itself. If that value is expensive to produce (a complex database query, an aggregation across several services, a slow third-party API call), you now have dozens, hundreds, or thousands of copies of that expensive work running at once, all hitting the same downstream system within the same few hundred milliseconds. The system that the cache was shielding suddenly sees a spike that looks nothing like normal traffic, and it can fall over under the load. The term "thundering herd" originally described a related operating systems problem, where many processes blocked on the same event all wake up at once when it fires, even though only one of them can actually make progress. The cache version is the same shape: one event (a cache miss) triggers many redundant reactions. The core issue is that a cache miss is usually interpreted the same way regardless of how many requests encounter it. Each request runs the same logic: check the cache, find nothing, recompute, write the result back. There is nothing in that logic that asks "is someone else already recomputing this right now?" This is especially easy to trigger with a few common patterns: A hot key with a hard TTL. If a widely used cache entry expires at a fixed time, and that key receives steady or
Ask a solo SaaS founder about backups and you usually get the same answer. "Yeah, the host does daily backups." Then you ask when they last restored one, and it gets quiet. A backup you never restored is a guess. It might be fine. It might be an empty bucket. That's not me being dramatic. In January 2017 GitLab.com lost about six hours of production database data after an engineer wiped the wrong Postgres data directory. They had several backup methods on paper. When they went looking, the nightly pg_dump uploads to S3 weren't there. The job had been running pg_dump 9.2 against a 9.6 database, so it errored out every time, and the failure emails were getting rejected by the receiving server, so nobody saw them. They recovered from a snapshot an engineer had taken by hand around six hours before for staging. One line in GitLab's postmortem stuck with me: the backup procedure wasn't tested regularly because nobody owned it. If a company that size can have zero working backups for a while, a one-person SaaS definitely can. So here is the small drill I'd run once a month. It takes about an hour the first time and maybe 20 minutes after that. Before any commands, answer three boring questions in a note: Where is the data? Usually Postgres (or MySQL), plus file uploads in S3 or similar, plus whatever lives only in Stripe. People forget the uploads bucket all the time. How much can I lose? If you restored last night's backup right now, could you live with losing everything since? For most early products a day is survivable. An hour is nicer. Be honest, not heroic. How long can I be down? "A few hours on a weekend" is a real answer. It decides whether a slow manual restore is ok. That's your recovery point and recovery time, in plain words. Don't skip it, because it tells you whether the host's daily snapshot is actually enough. Use whatever your provider gives you (daily snapshot, point-in-time restore) or your own dump. If you run your own, the custom format is the one to
An API key leak creates two competing operational constraints: stop further access, but preserve enough trustworthy evidence to learn what the key already touched. Revoke too early without capturing the relevant records and responders may lose the easiest correlation handle; wait without containment and the exposure continues. TL;DR: create a replacement credential, deploy it alongside the still-valid old one, verify the replacement is serving production traffic, then revoke the leaked key. For the investigation, build one UTC-ordered usage series from immutable gateway, application, data-access, and control-plane logs. Join on a keyed fingerprint, request or trace ID, authenticated principal, source context, action, resource, outcome, and timestamp. The blast radius is the set of resources and operations supported by those records, not every resource the credential was theoretically allowed to reach. This is an evidence problem first. A request count can tell you how busy a credential was. It cannot tell you whether the caller listed projects, read a secret, changed a webhook, or received a denial. Counts mislead. Start by separating three quantities that incident notes often blur together: Entitlement radius: everything policy allowed the credential to do during the exposure window. Observed radius: resources and actions present in retained, attributable logs. Confirmed impact: successful operations whose semantics imply a read, mutation, deletion, or privilege change. These sets answer different questions. Entitlements provide the conservative upper bound. Observed activity narrows the investigation. Confirmed impact drives recovery work, such as restoring a changed configuration or rotating a downstream secret that was read. A missing event is not proof that nothing happened; it may instead expose a retention, sampling, or instrumentation gap. The exposure window needs equally careful bounds. Use the earliest credible disclosure or suspected access as the lower
Citrix has warned IT administrators to patch systems immediately against a new critical vulnerability affecting NetScaler ADC networking appliances and NetScaler Gateway secure remote access solutions. [...]
A hands-on build, a deliberate failure, and the cost, resilience and design trade-offs that never make it onto the architecture diagram. Nobody designs a bad cloud network. They accumulate one reasonable decision at a time. It starts with two VPCs and one peering connection, and it works beautifully. Then a third VPC appears for a new team. Then a fourth for a new environment. Six months later you own a web of routes that nobody can fully draw from memory, and a single missed entry can take down a service on a Friday afternoon. I wanted to see exactly where that curve bends, so I built both designs in AWS: a peering topology, and a hub-and-spoke network around a Transit Gateway. I tested connectivity, broke it on purpose, and then did the part most tutorials skip: I looked hard at what each choice costs, how it fails, and when it is the wrong answer. Here is what I learned, including the places where the "obvious" upgrade is not the right call. Before the case against peering, the case for it, because it is a strong one. A VPC peering connection is a direct, private link between two VPCs. AWS builds it on the existing VPC infrastructure rather than on a gateway or separate appliance, and its own documentation states there is no single point of failure and no bandwidth bottleneck. There is also no charge to create one, and data that stays within an Availability Zone is free. For a web tier talking to a database tier, peering is close to perfect. I would still choose it there. So why leave it? Because of one design property that quietly becomes your biggest problem. If VPC A is peered with B, and B is peered with C, A still cannot reach C. Connectivity never passes through a middleman. The only way to connect everything is a full mesh, where every VPC peers with every other VPC: connections = N × (N − 1) ÷ 2 VPCs Peering connections Route entries to maintain* 3 3 6 10 45 90 50 1,225 2,450 100 4,950 9,900 *At least one route per side of every connection, before account
AWS Backup Vault Lock in compliance mode is a strong guarantee. Once the cooling-off period ends, nobody can delete a recovery point early. Not an admin, not root, not AWS Support. For regulated workloads it is the closest thing to an offline tape you can get in the cloud. We recently moved our RDS backups to this setup: an AWS Backup plan, a local vault, and a copy of every recovery point to a locked vault in a second region. Then a reviewer asked one question that undid the whole feeling of safety. What protects the KMS key that encrypts the locked vault? Nothing did. The vault key was a normal customer-managed key with the default policy. Any administrator in the account could disable it or schedule it for deletion. The recovery points would survive, locked and immutable, but nobody could decrypt them. A backup you cannot read is not a backup. This post is about what we tried, what failed in a way the docs would have told us, and what we ended up with. Three KMS actions can make a key unusable: kms:ScheduleKeyDeletion, kms:DisableKey, and kms:PutKeyPolicy. The third one matters because anyone who can rewrite the policy can remove the other two denies. A key policy can deny these to everyone except a single break-glass principal: statement { sid = "DenyKeyDestruction" effect = "Deny" actions = ["kms:ScheduleKeyDeletion", "kms:DisableKey", "kms:PutKeyPolicy"] resources = ["*"] principals { type = "AWS" identifiers = ["*"] } condition { test = "StringNotEquals" variable = "aws:PrincipalArn" values = [var.break_glass_role_arn] } } Two details are easy to miss here. First, this deny applies to the account root user too. The key policy is always evaluated, and an explicit deny in it beats the default root allow. Second, KMS will refuse to create this key. The lockout safety check rejects any policy that denies PutKeyPolicy to the principal creating the key. You have to pass bypass_policy_lockout_safety_check = true. That flag exists for exactly this reason: if the exem
1. O problema: privilégio excessivo é a norma, não a exceção Nos dois artigos anteriores desta série, vimos como evitar que segredos vazem em texto puro e como bloquear recursos inseguros antes do apply com Policy as Code. Fechamos a série com um problema mais silencioso, porque não gera erro nem alerta: permissões de IAM concedidas com mais alcance do que o necessário. Uma role de aplicação com s3:* quando só precisa de s3:GetObject em um bucket específico. Um usuário de CI com AdministratorAccess porque "assim resolve na hora e ninguém precisa pedir mais permissão depois". Nada disso quebra nada — até o dia em que uma credencial é comprometida, e o raio de ação do atacante é exatamente do tamanho da permissão que ninguém restringiu. Actions com wildcard: "Action": "s3:*" ou "Action": "*" em vez de listar exatamente as operações necessárias (s3:GetObject, s3:PutObject). Resources com wildcard: "Resource": "*" quando a intenção real era restringir a um bucket ou prefixo específico. Roles compartilhadas entre serviços diferentes: uma única role "backend-role" usada por várias Lambdas/serviços com necessidades distintas, acumulando permissões de todos ao longo do tempo porque é mais fácil reaproveitar do que criar uma nova. Credenciais de longa duração: access keys de usuário IAM sem rotação, em vez de roles assumidas temporariamente (via sts:AssumeRole) ou identidades federadas (OIDC em pipelines de CI). Permissões concedidas e nunca revisadas: um acesso liberado para resolver um incidente pontual ("dá acesso de admin no S3 pra debugar isso rápido") que nunca é removido depois. Least privilege na prática raramente é "acertar de primeira" — é um processo iterativo: Comece restritivo, não permissivo. Ao criar uma role nova, liste apenas as actions que o código efetivamente chama, mesmo que isso signifique testar e ajustar algumas vezes até funcionar. Use os logs de acesso reais para calibrar. Ferramentas como o IAM Access Analyzer (AWS) geram recomendações de política
If a call from inside a container occasionally takes almost exactly 5 seconds and then succeeds normally, you are almost certainly looking at a DNS resolver timeout, not a slow upstream. The glibc resolver waits 5 seconds per nameserver attempt by default, and Kubernetes pods ship with options ndots:5, which turns every external hostname into several cluster-internal lookups before the real one is tried. The fix is to stop generating those extra queries — per-pod dnsConfig, a fully-qualified hostname with a trailing dot, or a node-local DNS cache — not to raise your HTTP client timeout. That number is a resolver default, not a coincidence. resolv.conf supports options timeout:n attempts:m, and on glibc the defaults are a 5-second timeout with 2 attempts per nameserver. So any DNS query whose response never arrives costs you a flat 5 seconds before the resolver retries or moves on. This matters because a dropped UDP response is indistinguishable from a slow one. The usual causes are a saturated or restarting DNS pod, a conntrack race on the DNAT path to the DNS service, or simply too many queries in flight because of the fanout described below. Whatever the trigger, the symptom is the same shape: p50 latency is fine, p99 has a cliff at 5s (or 10s, when two attempts fail), and the upstream provider's status page is green. A latency histogram with a spike parked at 5 seconds and nothing between 200ms and 5s is a resolver timeout, not a network slowdown. The ndots option says: if a name contains fewer than this many dots, treat it as relative and try it against each entry in search first, before trying it as an absolute name. Kubernetes injects something like this into pods: nameserver 10.96.0.10 search myapp.svc.cluster.local svc.cluster.local cluster.local options ndots:5 api.stripe.com has two dots, which is fewer than five, so the resolver dutifully asks for api.stripe.com.myapp.svc.cluster.local, then api.stripe.com.svc.cluster.local, then api.stripe.com.cluster.lo
Accidental credential commits are often found weeks or months after they happen, long after anyone who was watching had time to use them. This guide walks through a systematic audit of your repositories, git history, Docker images and CI pipelines using free, open-source tools. A credential audit is not just scanning your current working tree. Secrets committed to git are permanent in history unless you rewrite it. Deleting a file does not remove the secret: the commit with the original file is still reachable via git log and git show. A proper audit covers: Full git history: every commit, including deleted files and reverted changes All branches and tags: feature branches often hold secrets that never reached main Docker image layers: build-time ARG and ENV instructions that baked secrets in CI/CD configs: .github/workflows, .gitlab-ci.yml, and environment variables echoed into logs Lock files: rarely, npm/yarn lockfiles contain registry auth tokens Build artifacts: compiled frontends that embedded env vars at build time Gitleaks (MIT) is one of the most widely used open-source secret scanners, with built-in rules for OpenAI, AWS, Stripe, GitHub, Twilio and most major providers. # Install (macOS) brew install gitleaks # Install (Linux) curl -sSL https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks_linux_x64.tar.gz | tar -xz sudo mv gitleaks /usr/local/bin/ # Scan full git history of the current repo gitleaks detect --source . --verbose # Write a JSON report gitleaks detect --source . --report-path gitleaks-report.json --report-format json detect scans every commit. On large repos it can take a few minutes; --log-opts accepts any git log options, e.g. --log-opts="--since=2025-01-01" to scan recent history only. Add it as a pre-commit hook so new secrets never land: # .pre-commit-config.yaml repos: - repo: https://github.com/gitleaks/gitleaks rev: v8.21.0 hooks: - id: gitleaks pre-commit install TruffleHog (AGPL-3.0) goes further by verifying detect
An inference pod carrying a 145 GB model took more than 20 minutes between the scheduler accepting it and the first token coming out, and the autoscaler only asked for that pod once the queue was already full. This article tells the migration of an LLM endpoint on SageMaker HyperPod to the model caching AWS released on September 11, 2026: weights on local NVMe, pre-pulled image, and the part no announcement mentions, rewriting the autoscaling policy that had been tuned to live with the cold start. The endpoint that threads this story is a document-analysis pipeline, contracts and statements, bursty traffic at the start of business and at end-of-day close. A model with roughly 145 GB of weights on S3, vLLM in a custom 12 GB container on ECR, p5.48xlarge instances, an InferenceEndpointConfig with an autoScalingSpec triggered by CloudWatch invocations. Measured from kubectl describe pod, the time between Scheduled and Ready split into three slices: 5 to 7 minutes pulling the image from ECR, more than 20 minutes downloading weights from S3 to the node disk, and about 90 seconds loading weights into HBM. The first two slices are network and have nothing to do with the model, they are the same download repeated on every pod, every scale-out, every node replacement by HyperPod's health check. The operational consequence was not the time itself; it was what we did to live with it. We kept two permanent spare replicas, scaleUpStabilizationTime at zero and a low targetValue so the autoscaler would anticipate the burst. Two p5.48xlarge sitting idle 24 hours a day is 1,440 instance-hours per month bought only to hide a download. The right question was not "how do we make the pod start faster?", it was "how much of the headroom exists only because the pod is slow?". Measure the baseline per slice: Before changing anything, we recorded per pod the image-pull time, the weight-download time and the GPU load time, from pod events and vLLM logs. Without that split there is no way to
An unauthenticated attacker with network access to a Splunk search head cluster member can execute arbitrary OS commands. No credentials. No interaction. CVE-2026-76268 | CVSS 9.1 | Affects 10.4.x and 10.2.x only Splunk Enterprise ships with Patroni — a PostgreSQL high-availability tool — running a REST API on search head cluster members. That API has no authentication on critical operations. Network access is enough. Affected: 10.4.0–10.4.2 and 10.2.0–10.2.6. A compromised Splunk deployment isn't just a breach — it's a blind spot. Attackers with command execution on a search head can: Suppress or delete alerts Modify detection rules and saved searches Exfiltrate every log your org has shipped to Splunk Pivot to other systems via Splunk's broad network access An unauthenticated attacker with network access to a Splunk search head cluster member can execute arbitrary OS commands. No credentials. No interaction. CVE-2026-76268 | CVSS 9.1 | Affects 10.4.x and 10.2.x only Splunk Enterprise ships with Patroni — a PostgreSQL high-availability tool — running a REST API on search head cluster members. That API has no authentication on critical operations. Network access is enough. Affected: 10.4.0–10.4.2 and 10.2.0–10.2.6. A compromised Splunk deployment isn't just a breach — it's a blind spot. Attackers with command execution on a search head can: Suppress or delete alerts Modify detection rules and saved searches Exfiltrate every log your org has shipped to Splunk Pivot to other systems via Splunk's broad network access Set disabled = true in the [postgres] stanza of $SPLUNK_HOME/etc/system/local/server.conf, then restart Splunk. Only safe to do if you're not using Edge Processor, OpAmp, or SPL2 data pipelines. If you are — patch first, no workaround. 17 CVEs total across all four branches (10.4, 10.2, 10.0, 9.4): CVE-2026-76266 (7.7) — local user runs commands as Splunk service account on Linux → loads attacker-controlled shared library → privilege escalation CVE-2026-76
TL;DR Self-hosting an open-weight LLM is rarely expensive because the GPU is expensive. It is expensive because most people run the GPU at single-digit utilization. The headline rental price of an accelerator is fixed per hour, so your true cost per million tokens is set almost entirely by how many tokens you push through that hour. Continuous batching, a realistic input/output token mix, and honest utilization numbers move the price by more than 10x. This post gives you a back-of-the-envelope model you can plug your own numbers into, plus the three server settings that actually change the result. When someone says "an H100 costs about 2 to 3 dollars per hour," they have quoted an input to the problem, not the answer. What you sell or consume is tokens, not GPU-seconds. The conversion factor between them is throughput, and throughput is not a property of the GPU alone. It is a property of the GPU plus the model plus the request pattern plus your server configuration. The single formula that matters: cost_per_1M_tokens = (gpu_hourly_cost / tokens_per_hour) * 1_000_000 tokens_per_hour = throughput_tokens_per_sec * 3600 * utilization Two deployments renting the identical GPU at the identical hourly price can differ by an order of magnitude in cost_per_1M_tokens, purely because one achieves 800 tokens per second at 70 percent utilization and the other achieves 90 tokens per second at 15 percent utilization. The hardware invoice is the same. The unit economics are not. A naive server processes one request, waits for it to finish generating, then starts the next. The GPU spends most of its time idle between the compute-heavy prefill and the memory-bound decode steps. Continuous batching, popularized by the vLLM project, instead keeps a running set of in-flight sequences and injects new requests into the batch as soon as slots free up, token by token. The vLLM docs describe this as iteration-level scheduling, and it is the main reason a well-tuned open server reaches throu