惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Archives - TechRepublic
Security Archives - TechRepublic
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
阮一峰的网络日志
阮一峰的网络日志
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
P
Palo Alto Networks Blog
Know Your Adversary
Know Your Adversary
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Cisco Talos Blog
Cisco Talos Blog
L
Lohrmann on Cybersecurity
AWS News Blog
AWS News Blog
J
Java Code Geeks
博客园_首页
Scott Helme
Scott Helme
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
V
Visual Studio Blog
Cloudbric
Cloudbric
Jina AI
Jina AI
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 叶小钗
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
A
Arctic Wolf
C
Cybersecurity and Infrastructure Security Agency CISA
S
SegmentFault 最新的问题
The Last Watchdog
The Last Watchdog
SecWiki News
SecWiki News
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
W
WeLiveSecurity
K
Kaspersky official blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Hacker News: Ask HN
Hacker News: Ask HN
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
量子位
Google Online Security Blog
Google Online Security Blog
博客园 - Franky
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - 三生石上(FineUI控件)
Recent Commits to openclaw:main
Recent Commits to openclaw:main

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
The dog that didn't bark: finding security holes in what's missing, not what's misconfigured
Bala Paranj · 2026-05-07 · via DEV Community

Every security scanner examines resources that exist. Nobody checks whether the resources your IAM policies reference actually exist. A deleted S3 bucket name referenced in an active policy is a structural hole — the permission is live, the resource is gone, and the name is reclaimable by any attacker. The absence is the evidence.

In Arthur Conan Doyle's Silver Blaze, a prize racehorse is stolen from a guarded stable. Scotland Yard investigates the crime scene, interviews witnesses, examines evidence. They focus on what happened — what they can see, measure, and catalog.

Sherlock Holmes solves the case by noticing what didn't happen.

Is there any point to which you would wish to draw my attention?
To the curious incident of the dog in the night-time.
The dog did nothing in the night-time.
That was the curious incident.

The guard dog should have barked at an intruder entering the stable. It didn't. Therefore the person who took the horse wasn't a stranger. The dog knew them. Every investigator examined the evidence that was present. Holmes noticed the evidence that was absent.

Cloud security scanners examine resources that exist. They check properties, configurations, and permissions on things that are there:

  • Is this S3 bucket public? Check the bucket.
  • Is this RDS instance encrypted? Check the instance.
  • Is this IAM role over-privileged? Check the role.
  • Is this security group open? Check the security group.

Every check follows the same pattern: find a resource, read its configuration, evaluate a predicate. The resource exists. The scanner examines it. The finding describes what's wrong with it.

This is Scotland Yard examining the crime scene. Thorough, methodical, and looking at everything that's there.

What scanners don't look at:

An IAM policy says: "Allow PutObject to arn:aws:s3:::prod-audit-logs."

Every scanner checks the policy's permissions. Is it too broad? Does it grant admin access? Does it follow least privilege? They examine the policy — the thing that exists.

Nobody checks whether prod-audit-logs exists.

The bucket was deleted six months ago during a migration. The policy wasn't updated. The permission is active. The resource is gone. The ARN in the policy points at nothing.

This is the dog that didn't bark. The resource should exist. It doesn't. The absence is the evidence.

S3 bucket names are globally unique across all AWS accounts. When a bucket is deleted, its name becomes available for registration by anyone. Any AWS account, anywhere in the world, can create a bucket with that exact name.

The IAM policy still says "Allow PutObject to prod-audit-logs." The Lambda function that writes audit logs still runs every hour. It calls PutObject on prod-audit-logs. If nobody owns that bucket, the write fails silently. If an attacker registers the bucket name, the write succeeds — to the attacker's bucket.

The organization's audit logs — potentially containing PHI, financial records, user activity, or compliance evidence — begin flowing to an attacker-controlled destination. The Lambda function doesn't error. The CloudWatch metrics look normal. The data delivery succeeds. It just goes to the wrong place.

The organization is generating compliance evidence and delivering it to an adversary.

Not every missing resource is equally dangerous. The risk depends on what the policy allows and whether the resource name is reclaimable.

Tier 1: Any dangling reference. An IAM policy references a resource ARN that doesn't exist in the current inventory. The permission is active, the resource is absent. This is a structural hole — the policy's intent no longer matches reality. Maybe the resource was deleted intentionally and the policy cleanup was forgotten. Maybe the resource was renamed. Maybe it never existed (typo in the policy). Regardless, the permission points at nothing. Severity: high.

Tier 2: Write permission to a reclaimable name. The policy grants PutObject, SendMessage, Publish, or other write actions to a resource name that an attacker can claim. This isn't a latent risk. The organization's systems are actively trying to send data to this destination. The attacker claims the name and the data starts arriving. Severity: critical. This is the exfiltration tier.

Tier 3: KMS key reference to a deleted key. The policy grants kms:Decrypt or kms:Encrypt on a key that's been scheduled for deletion or already deleted. KMS key ARNs include random IDs and can't be reclaimed by another account — the risk is operational, not exfiltration. Systems configured to encrypt with a deleted key either fail or fall back to unencrypted writes. The policy maintains the illusion that encryption is active. An auditor reads the policy and sees encryption permissions. The key behind those permissions is gone. Severity: high.

The structural limitation isn't that scanners are poorly built. It's that the finding doesn't live on any single resource.

A per-resource scanner iterates through resources: for each S3 bucket, check its configuration. For each IAM role, check its policies. For each EC2 instance, check its security group.

A ghost reference finding lives in the gap between two inventories: the set of ARNs in IAM policies and the set of resources that actually exist. The finding is the difference between these two sets. No single resource carries it. The bucket doesn't exist to be scanned. The policy exists but looks normal — it has valid JSON, well-formed ARNs, and reasonable permissions. The problem is only visible when you compare the policy's ARNs against the resource inventory and notice an ARN that doesn't resolve.

This is cross-inventory reasoning. The scanner must compare two datasets and notice what's in one but not the other. Per-resource scanners don't do this because their architecture processes one resource at a time. The dog that didn't bark is invisible to any investigator who only examines witnesses who showed up.

The detection requires three inputs:

Input 1: Policy ARN extraction. Parse every Allow statement in every IAM policy (user policies, group policies, role policies, managed and inline). Extract every fully-qualified, non-wildcard ARN. Wildcard ARNs (arn:aws:s3:::prod-*) can't be cross-referenced against the inventory — they match a pattern, not a specific resource.

Input 2: Resource inventory. Every resource the extractor collected: S3 buckets, SQS queues, SNS topics, Lambda functions, KMS keys, DynamoDB tables. Each with its ARN.

Input 3: Cross-reference. For every ARN in a policy, check whether a resource with that ARN exists in the inventory. If it doesn't, the policy references a ghost.

The finding output tells the operator what they need to act:

Finding: CTL.IAM.POLICY.GHOSTREF.002 [CRITICAL]

  DEFECT:
    IAM policy "AuditLogWriter" grants s3:PutObject
    to arn:aws:s3:::prod-audit-logs which does not
    exist in the resource inventory. The bucket name
    is globally reclaimable.

  INFECTION:
    The Lambda function "WriteAuditLogs" executes
    hourly with this policy's permissions. It calls
    PutObject on prod-audit-logs. If an attacker
    registers this bucket name, the function's
    writes succeed — to the attacker's bucket. The
    function sees no errors. The data delivery
    appears normal.

  FAILURE:
    Silent data exfiltration. Audit logs containing
    PHI are delivered to an attacker-controlled S3
    bucket. The organization continues generating
    compliance evidence and delivering it to an
    adversary.

  DELTA:
    Remove arn:aws:s3:::prod-audit-logs from the
    AuditLogWriter policy, or recreate the bucket
    and verify ownership.

Enter fullscreen mode Exit fullscreen mode

The operator reads this and understands: the policy is pointing at a bucket that doesn't exist, the bucket name can be claimed by anyone, and an active Lambda function is trying to write to it right now. The fix is immediate: either remove the dangling reference from the policy or recreate the bucket.

The ghost reference alone is dangerous. Combined with missing logging, it's invisible.

If CloudTrail data-write logging is enabled, the PutObject calls to the ghost bucket are logged — even when they fail. A security team reviewing CloudTrail can see "PutObject to prod-audit-logs failed with NoSuchBucket" and investigate. The ghost reference is discoverable through log analysis, even without the cross-inventory detection.

But if data-write logging is also disabled, the PutObject calls generate no log entries. The writes fail silently or succeed to an attacker's bucket with no observable signal. The ghost reference is invisible to the scanner AND invisible in the logs.

When the ghost reference finding co-occurs with missing write logging, the compound risk is total: the exfiltration path is open and there is no forensic trail to detect it. This is the compound chain — two independent findings that together produce a risk neither captures alone.

Ghost references aren't created by malice. They are created by mundane operational workflows:

  1. Team provisions an S3 bucket for audit logs
  2. IAM policy is written granting Lambda write access to the bucket
  3. Lambda function runs for months, writing logs
  4. Team migrates logging to a new architecture — new bucket name, new function
  5. Old bucket is deleted
  6. Old Lambda function is deleted
  7. Old IAM policy is... still there

Step 7 is the failure. Steps 1-6 are normal operations. The migration was successful. The new architecture works. Nobody noticed that the old policy still exists because the old policy isn't attached to anything that's actively used — or is it? Maybe a different Lambda function in a different team's account inherited the old policy through a role that was shared. Maybe a CI/CD pipeline still references the old role. Maybe the policy is attached to a group that 40 developers belong to.

The gap between resource deleted and policy updated grows with organizational complexity. In small teams, one person manages both the resource and the policy. In large organizations, different teams manage infrastructure, IAM, and applications. The resource owner deletes the resource. The IAM team doesn't know the resource was deleted. The policy persists.

Over months and years, the ghost reference count grows. Each one is a structural hole. Most are dormant. The resource type isn't globally reclaimable, or no active system references the ghost. But the write-permission ghosts pointing at reclaimable S3 bucket names are live exfiltration paths waiting for someone to notice.

Holmes didn't just notice the dog didn't bark. He deduced why it didn't bark and that deduction solved the case. The absence wasn't just a curiosity. It was the key evidence that every other investigator missed because they were looking at what was present.

Ghost resource detection works the same way. The absence of a resource behind an active IAM permission isn't a cleanup task. It's evidence of a structural security gap that no amount of per-resource scanning will find. The policy looks correct. The permissions are well-scoped. The JSON is valid. Everything present is fine. What's missing is the problem.

Every scanner on the market examines what's there. The most dangerous findings are in what isn't.


Ghost resource detection — cross-inventory reasoning about IAM policies referencing non-existent resources — is implemented in Stave, an open-source security CLI. Three controls detect dangling ARN references at escalating severity: general ghost references, write-permission exfiltration paths, and orphaned KMS key references. The finding lives in the gap between two inventories. No single resource carries it.