Check ID:
Provider: AWS
Service:
Severity: MEDIUM
Categories:
Resource type:
efs_not_publicly_accessibleProvider: AWS
Service:
efsSeverity: MEDIUM
Categories:
identity-access, internet-exposedResource type:
AwsEfsFileSystemWhat this check verifies
Amazon EFS file system policy is assessed for public or VPC-wide access. Policies with broadPrincipal values or that permit any client in the VPC without the elasticfilesystem:AccessedViaMountTarget condition are identified.
An absent or empty policy is treated as open to VPC clients.
Risk
Broad EFS access lets any VPC client-or a compromised workload-mount the share, impacting CIA:- Confidentiality: bulk data exfiltration
- Integrity: unauthorized writes or ransomware
- Availability: deletion or lockout via elevated client access Also facilitates lateral movement within the VPC.
Recommendation
Apply least privilege to EFS resource policies:- Avoid wildcard
Principalor* - Require
elasticfilesystem:AccessedViaMountTarget=true - Constrain with
aws:SourceVpc,aws:SourceAccount, or org IDs - Use EFS access points per app/role
- Enable EFS Block Public Access for defense in depth
Remediation
- CLI
- Terraform
- Native IaC
- Dashboard steps
References
- https://docs.aws.amazon.com/efs/latest/ug/access-control-block-public-access.html
- https://support.icompaas.com/support/solutions/articles/62000233324-efs-should-not-have-policies-allowing-unrestricted-access-within-vpc
Where this check fires
This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable byCheck ID = efs_not_publicly_accessible. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to AWS checks