Skip to content

Services, Wiki-Artikel und Blog-Beiträge durchsuchen

↑↓NavigierenEnterÖffnenESCSchließen

Attack Surface Management: Know and Reduce Your External Exposure

Attack Surface Management (ASM) is the ongoing process of discovering, assessing, and monitoring all of an organization’s externally accessible assets.

Table of Contents (4 sections)

"You can't protect what you don't know." Attack Surface Management takes this seriously. It's no longer about protecting a defined set of assets - it's about continuously identifying all the ways attackers could gain access.

What Is the Attack Surface?

Physical Attack Surface:

  • Physical access points: offices, server rooms
  • USB ports on workstations
  • Publicly accessible terminals

Digital Attack Surface:

  • External Attack Surface (Perimeter): All externally accessible IPs and domains, public web apps, APIs, VPN endpoints, email servers, DNS servers, cloud storage (S3, Azure Blobs), exposed management interfaces (RDP, SSH, Kubernetes API)
  • Internal attack surface (after initial access): Internal systems after breaching the perimeter, lateral movement targets
  • Third-party attack surface: Vendors, cloud providers, MSPs with access to systems - "Your weakest link is your supplier" (SolarWinds!)

Why ASM is so difficult:

"Shadow Assets" (unknown systems):

  • Old test servers that have been forgotten
  • Developer VMs in AWS (credit card without IT knowledge)
  • Cloud resources that were not deleted after a project
  • Subdomains on old IP addresses (subdomain takeover!)
  • Acquisitions: acquired companies with unknown IT infrastructure

Asset drift: Today 150 external assets are known, tomorrow a developer deploys a new internet-facing service without IT knowing - ASM detects it immediately.

Statistics:

  • 69% of organizations have experienced a data breach due to unknown or forgotten assets (Mandiant 2024)
  • Average company (1,000 employees): 500-2,000 external assets
  • Large corporation: 50,000+ external assets

Asset Discovery

1. Passive OSINT (without direct contact with target systems):

DNS/Certificate Transparency:

# All subdomains via CT log:
curl "https://crt.sh/?q=%.firma.de&output=json" | jq '.[].name_value' | sort -u

# Subfinder (active + passive enumeration):
subfinder -d firma.de -all -silent

# amass (very comprehensive):
amass enum -passive -d firma.de

Shodan.io search queries:

org:"Company Ltd"                    -> all known company assets
org:"Company Ltd" port:22            -> SSH server
org:"Company Ltd" http.title:"login" -> login pages
ssl.cert.subject.CN:"*.company.de"   -> via certificate

Shodan API (Python):

import shodan
api = shodan.Shodan('API_KEY')
results = api.search('org:"Company Inc."')
for r in results['matches']:
    print(f"{r['ip_str']}:{r['port']} - {r.get('http',{}).get('title','')}")

Censys: search certificates.parsed.subject.common_name: "firma.de" to find all certificates for the domain (IPv4 + IPv6 hosts). Pros: very extensive scan data.

WHOIS + IP ranges:

# RIPE NCC for European IP ranges:
whois -h whois.ripe.net "Company Inc."
# ASN, organization's IP ranges
# Then all IPs in the range:
nmap -sn 185.123.0.0/24

2. Active Discovery (direct scan, only on your own systems!):

Port scanning:

# Quick external scan:
nmap -sV -p 1-65535 --open -T4 185.123.45.0/24

# Top 100 ports quickly:
nmap --top-ports 100 -sV firma.de

HTTP/HTTPS Enumeration:

# httpx - fast HTTP probing:
cat subdomains.txt | httpx -title -tech-detect -status-code

# nuclei - template-based detection:
nuclei -l targets.txt -t exposures/configs/ -severity critical,high

3. Tool combination for complete discovery:

# Complete EASM pipeline (open source):
# Step 1: Subdomain discovery
subfinder -d firma.de -o subs.txt

# Step 2: Alive check + HTTP info
cat subs.txt | httpx -o alive.txt -title -tech-detect

# Step 3: Vulnerability scan
nuclei -l alive.txt -t nuclei-templates/ -severity critical,high -o vulns.txt

# Result: Complete overview in < 1 hour

Exposure Assessment and Risk Prioritization

Critical Exposures (immediate action required):

Exposed Management Interfaces:

  • RDP (Port 3389) public: most common ransomware entry point!
  • SSH (Port 22) without certificate
  • Kubernetes API (Port 6443) public
  • Exposed Database Ports: MySQL 3306, PostgreSQL 5432, Redis 6379 (Redis without auth = data stolen, RCE possible)
  • Admin Panels: phpMyAdmin, Adminer, pgAdmin public
  • Jenkins, Grafana, Kibana without authentication

Subdomain Takeover: Subdomain points to a non-existent CNAME target - attacker registers the target and controls the subdomain! Detection:

subzy run --targets subs.txt  # Automatic detection

Exposed Cloud Storage: S3 bucket publicly readable or Azure Blob publicly accessible. Detection: AWSBucketDump, BlobHunter.

# S3 Check:
aws s3 ls s3://company-customerdata --no-sign-request

Outdated/Vulnerable Versions:

  • Apache 2.4.49 (CVE-2021-41773, RCE!)
  • Outlook Web Access without the latest patch
  • Citrix ADC unpatched
  • Detection: nuclei with version-matching templates

Expired/Weak Certificates: SSL certificate expired, TLS 1.0/1.1 still active, SHA-1 certificate.

testssl.sh --full firma.de

Risk Scoring Framework:

Score = Base Severity x Exposure x Asset Criticality

FactorExampleValue
Base Severity (CVSS 0-10)Exposed RDP8.0 (High)
Base Severity (CVSS 0-10)SQL Injection9.8 (Critical)
Exposure MultiplierInternet-facing, no authx3
Exposure MultiplierInternet-facing, with authx1.5
Exposure MultiplierInternal onlyx0.5
Asset CriticalityProduction databasex3
Asset CriticalityTest serverx0.5
Asset CriticalityMarketing websitex1

Prioritization: Score > 8 - immediately, 6-8 - this week, 4-6 - this month

EASM Solutions

Commercial EASM platforms:

Microsoft Defender External Attack Surface Management - Integrated into Microsoft 365 Defender, automatic asset discovery, continuous monitoring, integration with Sentinel and Defender for Cloud. Price: Part of M365 E5 Security or add-on.

CrowdStrike Falcon Surface (formerly Reposify) - Wide range of asset classes: certificates, cloud assets, code repositories. Risk score per asset, API for integration.

Palo Alto Cortex Xpanse - Market leader according to Gartner. Global scan: 6 billion+ IPs daily, automatic mapping to organization, SaaS + certificates + cloud + IoT. Price: Enterprise pricing.

Open Source Alternative (Self-Hosted) - OWASP Amass + Nuclei + Custom Dashboard:

git clone https://github.com/owasp-amass/amass
# Daily cron job: amass enum -> nuclei scan -> Report
# Simple dashboard: Python Flask + SQLite
# Cost: 0 EUR + server time

Integration with Vulnerability Management (ASM -> VM Scanner -> Remediation):

  1. EASM detects new asset (new IP/domain)
  2. Automatic import into Tenable/Qualys
  3. Scan triggered within 24 hours
  4. Findings -> Ticket system (JIRA/ServiceNow)
  5. Remediation tracking

Metrics for ASM:

  • Attack Surface Size: Number of external assets (Trend!)
  • High-Risk Exposures: Number of critical exposures
  • Mean Time to Discover New Assets: How quickly detected?
  • Mean Time to Remediate Exposures: How quickly resolved?
  • Unknown Assets Discovered: Found by EASM, previously unknown

Questions about this topic?

Our experts advise you free of charge and without obligation.

Free Consultation

About the Author

Jan Hörnemann
Jan Hörnemann

COO

E-Mail

M.Sc. in Internet Security (if(is), Westfälische Hochschule). COO and authorized officer (Prokurist) with expertise in information security consulting and security awareness. Junior professor (Nachwuchsprofessur) for Cyber Security at FOM Hochschule, CISO lecturer at isits AG and doctoral candidate at the Graduierteninstitut NRW.

11 Publikationen
ISO 27001 Lead Auditor (PECB/TÜV) T.I.S.P. (TeleTrusT) ITIL 4 (PeopleCert) BSI IT-Grundschutz-Praktiker (DGI) Ext. ISB (TÜV) BSI CyberRisikoCheck CEH (EC-Council)
This article was last edited on 03/04/2026. Responsible: Jan Hörnemann, COO at AWARE7 GmbH. License: CC BY 4.0 - free use with attribution: "AWARE7 GmbH, https://a7.de"

Rufen Sie uns an

Mo-Fr, 8:00-17:00 Uhr - persönlich und unverbindlich.

0209 8830 6764
Jetzt anrufen