Skip to content

Scan accuracy ​

A scan is only useful if its unmanaged list is short and true. A false positive is a resource that scan calls unmanaged although AWS, another tool or a state owns it. This page records how many false positives scans of real accounts found, and how each group was fixed.

The numbers are aggregates. The accounts are numbered in the order they were scanned, and no account ID, name, ARN, tag or resource name appears here.

How it was measured ​

  1. A read-only tfcensus scan ran on a non-production account with a live Terragrunt repository, using only the built-in rule packs, and wrote CSV.
  2. The maintainer reviewed every unmanaged row and marked it as a false positive, a true positive or unsure.
  3. A script counted the rows by category and verdict, with no identifiers in its output.

The false-positive rate is false positives divided by unmanaged resources. The target is under 5%.

Results ​

AccountVersionResourcesUnmanagedFalse positivesFP rateUndetermined
1v0.3.01,80317114786%650
1v0.4.01,5043812.6%26
2v0.4.01,5448511.2%54
3v0.4.01,4533712.7%26

All three accounts are AWS Control Tower member accounts. The v0.4.0 rows come from a build of v0.4.0 before its release, and the scans ran on 2026-11-16.

The one false positive left in each v0.4.0 row is ElastiCache's system-managed default.iam-user, which the account-defaults rule covers since the v0.4.0 release. Account 2 has 4 rows marked unsure: a Glue database, an SNS topic and an SQS queue that a data platform likely created, and one network interface with no owner shown.

The true positives are resources made by hand, at account creation, by a Terraform unit whose state is missing, or by another tool: VPN and Client VPN endpoints, ACM certificates, SSM parameters, older API Gateway deployments, prefix lists, Route 53 records in a second hosted zone, an MSK Connect setup, QuickSight and analytics resources, and Resource Explorer itself.

What the v0.3.0 scan found ​

The first scan of account 1 had 147 false positives. They fell into these groups, and each fix is a rule, a category inheritance, a native layer or a type mapping:

GroupCountFixed by
Attachments and inline policies of service-linked and IAM Identity Center roles60inheritance
Children of CloudFormation resources8inheritance
Network interfaces that AWS services created27service-eni
Route 53 records that external-dns owns8external-dns
Rules of the EKS cluster and Load Balancer Controller security groups8eks-cluster-security-group, aws-load-balancer-controller-rule, inheritance
AWS defaults12apex-ns-soa, default-dhcp-options, main-route-table, regional-nat-route-table, inheritance
Control Tower roles4control-tower
QuickSight service roles and policies6quicksight-service-role
API Gateway log groups5apigateway-log-group
Service-linked secrets3service-linked-secret
Flow-log bucket policy1log-delivery-bucket-policy
aws_iam_policy_attachment and aws_default_route_table3type mappings
Deleted Elastic IPs that Resource Explorer still listed2stale Resource Explorer records dropped

Reruns of all three accounts found more groups, fixed before the v0.4.0 rows were recorded:

GroupCountFixed by
The / resource of REST APIs a state manages3derived from the API in state
AutoScalingManagedRule1autoscaling-managed-rule
Pod Identity associations an EKS add-on owns2native:eks-pod-identity
The default DHCP options1 per accountthe config layer reads AWS Config's property names
EFS automatic backup plan, vault and selection3 per accountefs-automatic-backup
QuickSight service policies on a managed QuickSight role4 in accounts 1 and 3quicksight-policy-attachment
ElastiCache's system-managed default.iam-user1 per accountaccount-defaults

Each rule name is on the rule packs page with its expression. A test scans a stubbed copy of every group and fails if any resource in them comes back unmanaged.

Read your own numbers ​

Your accounts differ from these. To measure your own rate, scan with CSV output and review the unmanaged rows:

sh
tfcensus scan --profile acme-nonprod --format csv > scan.csv

A resource that is unmanaged and shouldn't be is either a gap in the packs or a resource only your organization knows about. Write a rule for the second kind (rules guide), and open an issue for the first.