Mapping application architecture involves identifying all components that make up the application infrastructure, including web servers, application servers, databases, load balancers, CDNs, firewalls, and security devices. Understanding the architecture helps penetration testers identify scope boundaries, potential attack vectors, and provide meaningful security recommendations. This reconnaissance phase reveals how different components interact and where security controls are implemented.
What to Check
Infrastructure Components
Web server (Apache, nginx, IIS)
Application server (Tomcat, JBoss, .NET)
Database server (MySQL, PostgreSQL, MSSQL, Oracle)
# Trigger errors to identify database
curl -s "https://target.com/api?id='"
curl -s "https://target.com/api?id=1 OR 1=1"
Step 4: Load Balancer Detection
# Multiple requests to detect variations
for i in {1..10}; do
echo "=== Request $i ==="
curl -sI https://target.com | grep -iE 'server|date|x-|set-cookie'
sleep 1
done
# Look for load balancer cookies
curl -sI https://target.com | grep -i 'set-cookie'
Load Balancer Indicators
Indicator
Load Balancer
BIGipServer cookie
F5 BIG-IP
AWSALB/AWSALBCORS cookie
AWS ALB
X-Amz-Cf-Id header
AWS CloudFront
X-Cache header
Various
Via header
Proxy/LB
Inconsistent Server headers
Multiple backends
Varying response times
Distribution
Step 5: CDN Detection
# WHOIS lookup on resolved IP
dig +short target.com | xargs whois | grep -i 'org-name\|netname'
# Check known CDN ranges
curl -sI https://target.com | grep -iE 'cf-ray|x-cdn|x-cache|x-amz-cf|akamai|fastly|cloudflare'
CDN Indicators
Header/Pattern
CDN
CF-Ray
Cloudflare
X-Amz-Cf-Id
AWS CloudFront
X-Akamai-*
Akamai
X-Fastly-*
Fastly
X-CDN
Generic CDN
Server: cloudflare
Cloudflare
Step 6: Reverse Proxy Detection
# Look for proxy indicators
curl -sI https://target.com | grep -iE 'via|x-forwarded|x-real-ip|x-proxy'
# Check for header mismatches
# e.g., nginx Server header but ASP.NET errors
Proxy Indicators
Via header present
X-Forwarded-For header accepted
Server header mismatch with error pages
Different Server headers on different endpoints
Step 7: WAF Detection
# Test with common attack patterns
curl -s "https://target.com/?id=<script>alert(1)</script>"
curl -s "https://target.com/?id=' OR 1=1--"
curl -s "https://target.com/?id=../../../etc/passwd"
# Check response for WAF signatures
curl -sI "https://target.com/?id=<script>" | grep -iE 'waf|firewall|blocked|forbidden'
Run npx skillmds@latest add cyberstrikeus/wstg-info-10 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Map Application Architecture It is listed under Coding & Dev Tools on SkillMD.
SkillMD's automated safety review verdict for this skill is CAUTION. Independent scanners report: SkillSpector: CAUTION, Skill Scanner: FAIL. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
cyberstrikeus (@cyberstrikeus) published this skill. Their other Agent Skills are listed on their SkillMD profile.