Threats, Vulnerabilities, and Attacks · Topic 6 of 10

Attack Surfaces and Exposures

Security+ attack surfaces: stale credentials, rogue devices, shadow IT, low-power wireless, LLMs, identity providers, misconfiguration and public storage.

  • 5 min
In a nutshell
  • Stale and unmanaged credentials are accounts and keys that nobody watches. Review and remove them.
  • A rogue device is any unauthorized device on the network.
  • Shadow IT is unapproved technology, and its main risk is lack of visibility.

What it is

Not every weakness is a bug in code. Many breaches come from things that are exposed by accident: old accounts, devices nobody approved, services set up without the security team, or data left open to the public.

This page covers those attack surfaces. They share one feature: the organization often does not know they exist until an attacker finds them.

Unknown assetaccount, device, bucketnot seen bySecurity teamno monitoringfound byAttackerscanningleads toBreachdata exposed

How it works

Unmanaged and stale credentials

Stale credentials belong to accounts that are no longer needed, such as former staff, finished projects or old service accounts. Unmanaged credentials are ones no one tracks, such as shared logins or keys created and forgotten.

Nobody notices when these accounts are used, which makes them ideal for attackers. Regular access reviews, automatic deprovisioning when people leave and rotation of service account secrets close the gap.

Rogue devices

A rogue device is any unauthorized device connected to the network, such as a personal access point, a small computer hidden behind a desk or an unapproved switch. It can bypass network controls or give an attacker a foothold.

Network access control, port security and wireless scanning detect and block rogue devices.

Shadow IT

Shadow IT is the use of hardware, software or cloud services without the approval of the IT or security team. It is usually done for convenience, not malice.

The risk is visibility. Data stored in an unapproved service is outside backups, monitoring, patching and data protection policy.

Wireless and low-powered communications

Low-powered wireless protocols connect sensors, smart devices and wearables. These devices have little processing power and battery, so encryption and authentication are often weak, optional or switched off.

Weak pairing, default keys and lack of updates are common problems. Treat such devices as untrusted and segment them from important systems.

Large language models (LLMs)

An LLM added to a business process becomes part of the attack surface. Users may paste sensitive data into it, attackers may hide instructions in content it reads, and its output may be trusted without checking.

The last page of this chapter covers the threats and vulnerabilities of AI usage in detail.

Identity providers

An identity provider (IdP) authenticates users for many applications through single sign-on. That makes it a single point of failure: compromise the IdP, or an administrator account on it, and the attacker reaches every connected application.

Protect IdP administrator accounts with phishing resistant MFA, monitor IdP configuration changes and limit who can create trusts or tokens.

Mobile devices

IssueMeaning
Side loadingInstalling apps from outside the official store, bypassing its checks
JailbreakingRemoving manufacturer restrictions on an iOS device
RootingGaining administrator access on an Android device
Loss or theftA missing device may expose stored data and logged in sessions

Mobile device management (MDM) can detect jailbroken or rooted devices, enforce encryption and a screen lock, and wipe a lost device.

Misconfiguration

Misconfiguration means settings that expose a system even though the software works as designed. Examples are default passwords, open ports, overly broad permissions and debug features left on.

It is one of the most common causes of breaches. Secure baselines, configuration scanning and change control reduce it.

Public repositories

Code shared in public repositories can expose secrets, internal hostnames and the design of systems. Attackers scan public repositories automatically for keys and passwords within minutes of a push.

Public package repositories bring a second risk: a malicious or compromised package added as a dependency. Scan code for secrets before it is pushed, and vet the packages you use.

Public object storage

Cloud object storage, such as a storage bucket, can be set to allow public access. A bucket opened by mistake can expose large amounts of data to anyone who finds its address.

Bucketset to publicindexed byAttacker scanfinds addressdownloadsDatacustomer records

Under the shared responsibility model, the customer owns this setting, not the cloud provider. Block public access by default and alert on any change.

What to remember for the exam

  • Stale and unmanaged credentials are accounts and keys that nobody watches. Review and remove them.
  • A rogue device is any unauthorized device on the network.
  • Shadow IT is unapproved technology, and its main risk is lack of visibility.
  • Low-powered wireless devices often have weak or no encryption.
  • An LLM in a business process is part of the attack surface.
  • An identity provider is a single point of failure for every connected app.
  • Side loading, jailbreaking and rooting weaken mobile security. MDM detects and controls them.
  • Misconfiguration, public repositories and public object storage expose data without any software flaw.
Exam tip

When a cloud question asks who is responsible for a publicly exposed storage bucket, the answer is usually the customer.

Common mistakes

Treating shadow IT as an attack. It is a visibility problem, not a hostile act, but it still creates real risk.

Assuming the cloud provider secures everything. The provider secures the platform. The customer still owns data, accounts and settings.

Deleting a leaked secret from the repository and stopping there. The secret stays in the history and may already be copied, so it must be rotated.

Mixing up jailbreaking and rooting. Jailbreaking is the term for iOS, and rooting is the term for Android.

Check yourself

  • Why is an identity provider a high value target?

    It authenticates users for many applications, so compromising it gives access to all of them.

  • What is the main security risk of shadow IT?

    The security team cannot see, monitor or protect the systems and data involved.

  • A developer pushes an access key to a public repository and then deletes it. What must happen next?

    The key must be revoked and rotated, because it stays in the history and may already be copied.

Topic 6 of 10 in Threats, Vulnerabilities, and Attacks

Test yourself on Threats, Vulnerabilities, and Attacks

The full CompTIA Security+ SY0-801 question bank has 998 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by CompTIA. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.