Join our Newsletter — 33% off our NHI Course
Home› FAQ› Governance, Ownership & Risk› What should security teams do first when they…
Governance, Ownership & Risk

What should security teams do first when they find EC2 instances using the default security group?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated September 28, 2026 Domain: Governance, Ownership & Risk

The first step is to identify every affected instance and move it to a customized security group that matches the workload’s role and traffic needs. Then tighten the default group itself so it is non-permissive by default, audit for unused groups, and verify that no instance still depends on broad rules that violate least privilege.

What to change immediately when EC2 instances are using the default security group

The default security group is a convenience baseline, not a safe operating state for production workloads. If instances are still attached to it, the practical first move is to inventory those instances, understand what traffic each workload truly needs, and migrate them to purpose-built groups before you tune the default group itself.

That sequence matters because security group are workload guardrails, not a place to leave policy undecided. A default group often becomes a catch-all that hides overbroad inbound or east-west access, and the longer an instance remains attached, the harder it is to prove that access is intentionally constrained.

How to separate the instance fix from the group fix

Start with the affected EC2 instances, not the group object in isolation. Each instance should be reassigned to a customized security group that reflects its role, ports, source ranges, and dependency patterns, so the access model follows the workload rather than the default baseline.

Once the instance move is complete, harden the default security group so it is non-permissive by default and no longer useful as an operational landing zone. Then review whether any other groups are unused, duplicated, or carrying rules that no longer match the workload they were created for.

The important judgement is that the cleanup is only complete when no production instance still depends on broad default rules. If a workload still needs broad access after the move, that is usually a sign to revisit the workload design or dependency mapping, not to preserve the default group as a permanent exception.

What good looks like after the migration

Good practice is a one-way move from generic access posture to workload-specific policy. The instance now sits behind a security group that is explicit about who can talk to it, the default group is effectively inert for production use, and the rule set can be explained in terms of business function rather than historical convenience.

You should also be able to answer three questions quickly: which instances were affected, which traffic flows justified each retained rule, and which rules were removed because they had no active dependency. If those answers are unclear, the environment still contains unmanaged access risk even if the default group itself has been tightened.

Risk and Threat Considerations

Leaving EC2 instances on the default security group can create hidden exposure because the default posture is often broader than the workload needs. That increases the chance of unintended inbound reachability, lateral movement paths, and rule drift that survives long after the original deployment decision.

Failure mechanism: Teams treat the default group as harmless scaffolding, but it remains attached to live instances and can continue to allow traffic that was never intentionally reviewed for that workload.

Impact: Overexposed instances are easier to scan, abuse, or pivot through, and the resulting access path can defeat least-privilege assumptions even when the rest of the environment is well controlled.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-4 — Secure Configuration of Enterprise Assets and SoftwareDefault security groups are configuration drift on live assets.
Recommendation — Standardise EC2 baselines, remove default-group dependence, and verify only approved rules remain.
NIST SP 800-53 Rev 5CM-6 — Configuration SettingsThe question is about correcting an unsafe default configuration on EC2 instances.
AC-4 — Information Flow EnforcementSecurity groups control which traffic can reach instances and enforce flow boundaries.
Recommendation — Define and enforce approved security group settings for each workload. Restrict instance traffic to explicitly authorised flows only.
ISO/IEC 27001:2022A.8.9 — Configuration managementMoving off the default group is a configuration control and baseline-hardening action.
Recommendation — Manage EC2 security groups as controlled configuration items and review deviations.

Practitioner Guidance

What to prioritise: Treat the attached instance list as the real remediation target. If you cannot identify every instance still using the default group, you do not yet know the blast radius.

What to verify: Confirm that the replacement security group reflects the workload’s current ports, sources, and dependencies, not the access pattern from initial deployment. A clean move that preserves stale rules is only a cosmetic change.

Common mistake: Tightening the default group first while leaving instances attached to it. That can create a false sense of safety if the old rules are still operational on the workloads that matter.

Decision rule: If a rule cannot be tied to an active workload dependency, remove it or quarantine it for review. If a workload truly needs broad access, document the exception and redesign the network path as a follow-up item rather than normalising the exception.

Practitioner takeaway: The right first step is to move the workload off the default group, because access control is only meaningful when it is attached to the instance’s real role and traffic need.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

    NHIMG Editorial Note
    Reviewed and updated by the NHIMG editorial team on September 28, 2026.
    NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org