Lab 02 — Enterprise Pentesting
Welcome to Lab 02 — Enterprise Pentesting.
In the previous lab, you focused primarily on Active Directory identities, permissions, groups, authentication, and privilege relationships.
Now the scope becomes larger.
An enterprise environment is rarely:
One Server+One VulnerabilityA realistic organization may contain:
Internet-Facing Systems
Internal Networks
Windows Servers
Linux Servers
Active Directory
Web Applications
Databases
File Servers
Administrative Systems
User Workstations
Security Controls
Network SegmentationYour objective is to understand how these components interact and determine whether weaknesses can combine into meaningful enterprise risk.
The professional workflow becomes:
SCOPE ↓DISCOVERY ↓ASSET CLASSIFICATION ↓SERVICE ENUMERATION ↓VULNERABILITY ANALYSIS ↓IDENTITY ANALYSIS ↓WINDOWS / LINUX ASSESSMENT ↓ACTIVE DIRECTORY ↓SEGMENTATION ↓ATTACK-PATH MAPPING ↓CONTROLLED VALIDATION ↓EVIDENCE ↓BUSINESS IMPACT ↓REMEDIATION ↓RETESTPerform this lab only inside an isolated GoHackersCloud lab, systems you own, intentionally vulnerable training environments, or systems for which you have explicit authorization.
Mission Information
Section titled “Mission Information”Lab: 02 — Enterprise Pentesting
Track: OffSec Labs
Difficulty: Intermediate → Advanced
Estimated Time: 5–8 Hours
Environment: Isolated Enterprise Security Lab
Primary Role: Penetration Tester / Security Consultant
Focus: Enterprise Attack Surface and Attack-Path Assessment
Deliverable: Enterprise Penetration Testing Report
Mission Scenario
Section titled “Mission Scenario”You have been engaged to conduct an authorized internal penetration test for the fictional organization:
NovaTech IndustriesThe organization operates:
Windows Domain
Linux Servers
Windows Servers
Internal Web Applications
File Services
Database Services
Employee Workstations
Multiple Network SegmentsThe security team is concerned that individual weaknesses may combine into larger attack paths.
Your mission is to determine:
What Assets Exist?
Which Services Are Exposed?
Which Systems Are Important?
Where Are Weak Configurations?
Where Are Excessive Permissions?
Can Network Segmentation Be Bypassed?
Can Identity Relationships Expand Access?
Can Multiple Weaknesses Be Chained?
What Is the Potential Business Impact?Enterprise Lab Architecture
Section titled “Enterprise Lab Architecture”Use an isolated environment similar to:
PENTEST VM | | 10.10.10.0/24 | +----------------+----------------+ | | | v v v +------+ +------+ +------+ | WEB01| | WS01 | | DC01 | | Linux| | Win | | AD | +------+ +------+ +------+ | | | | +---------------+------------------+ | 10.10.20.0/24 | +---------+---------+ | | v v +------+ +------+ |APP01 | |FILE01| |Linux | | Win | +------+ +------+ | | 10.10.30.0/24 | v +------+ | DB01 | | DB | +------+Example systems:
| System | Role | Example Network |
|---|---|---|
| Pentest VM | Authorized assessment system | 10.10.10.0/24 |
| DC01 | Domain Controller | 10.10.10.0/24 |
| WS01 | Employee workstation | 10.10.10.0/24 |
| WEB01 | Web server | 10.10.10.0/24 |
| APP01 | Application server | 10.10.20.0/24 |
| FILE01 | File server | 10.10.20.0/24 |
| DB01 | Database server | 10.10.30.0/24 |
Replace these addresses with your own authorized lab values.
Learning Objectives
Section titled “Learning Objectives”By completing this lab, you should be able to:
- Establish penetration-test scope
- Create rules of engagement
- Discover enterprise assets
- Classify assets by business importance
- Enumerate network services
- Analyze exposed applications
- Assess Windows systems
- Assess Linux systems
- Review enterprise identities
- Analyze Active Directory relationships
- Evaluate file and data exposure
- Review network segmentation
- Identify trust relationships
- Build multi-system attack paths
- Validate findings safely
- Collect evidence
- Prioritize vulnerabilities
- Recommend remediation
- Produce a professional penetration-testing report
Prerequisites
Section titled “Prerequisites”You should understand:
TCP/IP
DNS
Routing
Network Segmentation
Linux Administration
Windows Administration
Active Directory
HTTP / HTTPS
SMB
SSH
LDAP
Kerberos
Authentication
Authorization
Basic Scripting
Vulnerability Management
Penetration Testing MethodologyThe Enterprise Pentesting Mindset
Section titled “The Enterprise Pentesting Mindset”Do not approach the environment as:
Find Open Port ↓Find Exploit ↓RepeatInstead:
UNDERSTANDTHE ENVIRONMENT ↓UNDERSTANDTHE ASSETS ↓UNDERSTANDTHE TRUST ↓UNDERSTANDTHE IDENTITIES ↓UNDERSTANDTHE CONTROLS ↓FINDWEAK RELATIONSHIPS ↓BUILDATTACK PATHSPhase 01 — Authorization
Section titled “Phase 01 — Authorization”Before beginning, confirm:
Who Authorized the Test?
Which Networks Are Included?
Which Systems Are Included?
Which Systems Are Excluded?
Which Techniques Are Allowed?
Which Techniques Are Restricted?
What Is the Testing Window?
Who Is the Emergency Contact?
What Are the Cleanup Requirements?Scope Template
Section titled “Scope Template”Assessment:Enterprise Penetration Test
Organization:NovaTech Industries
Environment:Isolated Training Lab
Authorized Networks:10.10.10.0/2410.10.20.0/2410.10.30.0/24
Excluded:Anything outside the lab environment
Objective:Identify enterprise security weaknessesand attack paths.
Testing Window:Lab session only
Evidence:Synthetic lab data onlyPhase 02 — Rules of Engagement
Section titled “Phase 02 — Rules of Engagement”Define:
Allowed:
Asset Discovery
Service Enumeration
Configuration Review
Authorized Vulnerability Validation
Identity Assessment
Attack-Path Analysis
Controlled Privilege ValidationRestricted unless specifically part of your lab:
Destructive Testing
Denial of Service
Persistence
Production Credential Collection
Uncontrolled Data Extraction
Malware Deployment
Security-Control EvasionPhase 03 — Build the Evidence Workspace
Section titled “Phase 03 — Build the Evidence Workspace”Create:
Enterprise-Pentest/|+-- 01-Scope/|+-- 02-Discovery/|+-- 03-Network/|+-- 04-Windows/|+-- 05-Linux/|+-- 06-Web/|+-- 07-Identity/|+-- 08-AD/|+-- 09-Segmentation/|+-- 10-Attack-Paths/|+-- 11-Evidence/|+-- 12-Findings/|+-- 13-Report/|+-- 14-Cleanup/Evidence Standard
Section titled “Evidence Standard”For every important action record:
Timestamp:
Source System:
Target:
Command / Method:
Purpose:
Result:
Security Significance:
Evidence:
Next Step:Phase 04 — Establish Your Position
Section titled “Phase 04 — Establish Your Position”On the authorized assessment system:
ip addrReview routing:
ip routeIdentify:
Assessment IP
Network
Gateway
Reachable Subnets
DNS ConfigurationWhy This Matters
Section titled “Why This Matters”You need to understand:
WHERE AM I?before asking:
WHAT CAN I REACH?Phase 05 — Discover Authorized Hosts
Section titled “Phase 05 — Discover Authorized Hosts”Against your lab subnet:
nmap -sn 10.10.10.0/24Repeat only for authorized networks.
Document:
IP Address
Hostname
Status
Possible RoleAsset Inventory
Section titled “Asset Inventory”Create:
| IP | Hostname | Role | OS | Priority |
|---|---|---|---|---|
| 10.10.10.10 | DC01 | Domain Controller | Windows | Critical |
| 10.10.10.20 | WEB01 | Web Server | Linux | High |
| 10.10.10.30 | WS01 | Workstation | Windows | Medium |
Phase 06 — Perform Port Discovery
Section titled “Phase 06 — Perform Port Discovery”For an individual authorized target:
nmap -p- <LAB_IP>This identifies TCP ports exposed by the training system.
Do not immediately assume:
Open Port=VulnerabilityAn open port means:
A Service Is ReachableYour next task is to understand that service.
Phase 07 — Perform Targeted Service Enumeration
Section titled “Phase 07 — Perform Targeted Service Enumeration”After identifying interesting ports:
nmap -sV -sC -p <PORTS> <LAB_IP>Example lab workflow:
FULL PORT DISCOVERY ↓IDENTIFY PORTS ↓TARGETED SERVICE ENUMERATION ↓MANUAL VALIDATIONService Inventory
Section titled “Service Inventory”Build:
| Host | Port | Service | Version | Purpose | Priority |
|---|---|---|---|---|---|
| WEB01 | 22 | SSH | Lab version | Administration | Medium |
| WEB01 | 80 | HTTP | Lab application | Web | High |
| DC01 | 53 | DNS | Domain DNS | AD | High |
| DC01 | 88 | Kerberos | Authentication | AD | Critical |
| FILE01 | 445 | SMB | File services | Storage | High |
Phase 08 — Identify the Asset Role
Section titled “Phase 08 — Identify the Asset Role”Ask:
Is This a:
Domain Controller?
Web Server?
Application Server?
Database Server?
File Server?
Workstation?
Management Server?
Security Appliance?Asset role determines testing priority.
Phase 09 — Classify Business Criticality
Section titled “Phase 09 — Classify Business Criticality”Use:
CRITICAL
HIGH
MEDIUM
LOWExample:
Domain Controller=Critical
Database=Critical
Application Server=High
Employee Workstation=MediumTechnical severity alone is not enough.
Phase 10 — Build the Attack Surface
Section titled “Phase 10 — Build the Attack Surface”For each system document:
Host
Operating System
Services
Applications
Authentication
Administrative Interfaces
Network Relationships
Identity Relationships
Data
Business FunctionAttack Surface Example
Section titled “Attack Surface Example”WEB01 | +-- HTTP | +-- HTTPS | +-- SSH | +-- Web Application | +-- Application Configuration | +-- Connection to APP01Phase 11 — Enumerate DNS
Section titled “Phase 11 — Enumerate DNS”DNS can reveal enterprise structure.
For known lab records:
nslookup <HOSTNAME>or:
dig <HOSTNAME>Record:
Hostnames
Domains
Server Names
Application Names
Infrastructure PatternsPhase 12 — Build a Network Diagram
Section titled “Phase 12 — Build a Network Diagram”Your first diagram may look like:
Pentest VM | +---- DC01 | +---- WEB01 | +---- WS01As you discover relationships, expand it:
Pentest VM | +---- WEB01 | +---- APP01 | +---- DB01Now you are beginning to understand architecture.
Phase 13 — Enumerate HTTP
Section titled “Phase 13 — Enumerate HTTP”For an authorized web service:
curl -I http://<LAB_IP>You can inspect the response:
curl -v http://<LAB_IP>Review:
HTTP Status
Headers
Cookies
Redirects
Server Information
Authentication
Application BehaviorPhase 14 — Web Application Mapping
Section titled “Phase 14 — Web Application Mapping”Document:
Pages
Authentication
Roles
Forms
Parameters
API Endpoints
Uploads
Downloads
Administrative FunctionsDo not begin with payloads.
Begin with:
How Does the Application Work?Phase 15 — Authentication Review
Section titled “Phase 15 — Authentication Review”Assess:
Login Process
Account Lockout
Session Handling
Role Separation
Password Policy
Logout
Password ResetUse only lab accounts provided for the exercise.
Phase 16 — Authorization Review
Section titled “Phase 16 — Authorization Review”Ask:
Can User A AccessUser B's Resources?
Can a Normal User ReachAdministrative Functions?
Are Server-Side AuthorizationChecks Present?Authorization flaws can be more important than complex technical vulnerabilities.
Phase 17 — Review Application Configuration
Section titled “Phase 17 — Review Application Configuration”In a purpose-built lab where local access has legitimately been provided, review application configuration for:
Database Connections
Service Endpoints
File Paths
Environment Settings
Authentication Configuration
Logging ConfigurationNever copy more sensitive data than necessary.
Phase 18 — Map Application Dependencies
Section titled “Phase 18 — Map Application Dependencies”Example:
USER ↓WEB01 ↓APP01 ↓DB01Now ask:
What Trust ExistsBetween Each Layer?Phase 19 — Linux Assessment
Section titled “Phase 19 — Linux Assessment”For an authorized Linux host where your lab provides shell access, begin with:
whoamiidhostnameuname -aPhase 20 — Understand the Linux Security Context
Section titled “Phase 20 — Understand the Linux Security Context”Document:
Current User
Groups
Hostname
Operating System
Kernel
System RolePhase 21 — Review Linux Privileges
Section titled “Phase 21 — Review Linux Privileges”In the lab:
sudo -lAsk:
What Commands Are Allowed?
Why Are They Allowed?
Does the User Need Them?
Could the Permission ViolateLeast Privilege?Phase 22 — Review Linux Processes
Section titled “Phase 22 — Review Linux Processes”Use:
ps auxIdentify:
Applications
Services
Administrative Processes
Unexpected ProcessesPhase 23 — Review Listening Services
Section titled “Phase 23 — Review Listening Services”Use:
ss -lntupCompare:
Externally Discovered Serviceswith:
Locally Listening ServicesA service listening only locally may reveal an internal application dependency.
Phase 24 — Review Linux Services
Section titled “Phase 24 — Review Linux Services”Where available:
systemctl --type=service --state=runningAsk:
Which Services Are Necessary?
Which Identity Runs Them?
Which Files Configure Them?
Which Network InterfacesDo They Listen On?Phase 25 — Review Scheduled Tasks
Section titled “Phase 25 — Review Scheduled Tasks”Inspect authorized training-system scheduling configuration.
For the current account:
crontab -lWhere permitted, review system scheduling locations.
Focus on:
Command
Owner
Permissions
Writable DependenciesPhase 26 — Review SUID Files
Section titled “Phase 26 — Review SUID Files”In your training VM:
find / -perm -4000 -type f 2>/dev/nullDo not assume every SUID file is vulnerable.
Ask:
Is It Expected?
Who Owns It?
Is It Standard?
Does Its ConfigurationCreate Excessive Privilege?Phase 27 — Review Linux Capabilities
Section titled “Phase 27 — Review Linux Capabilities”In the authorized lab:
getcap -r / 2>/dev/nullUnderstand why capabilities exist.
A capability is not automatically a vulnerability.
The question is:
Does This CapabilityGrant More Power Thanthe Application Requires?Phase 28 — Review File Permissions
Section titled “Phase 28 — Review File Permissions”Focus on security-sensitive files related to the lab application.
Ask:
Who Owns the File?
Who Can Modify It?
Which Service Uses It?
Could a Lower-Privilege IdentityModify Security-Sensitive Configuration?Phase 29 — Linux Privilege Escalation Mental Model
Section titled “Phase 29 — Linux Privilege Escalation Mental Model”Use:
IDENTITY ↓GROUPS ↓SUDO ↓FILES ↓SERVICES ↓SCHEDULED TASKS ↓CAPABILITIES ↓APPLICATION CONFIGURATION ↓SECURITY IMPACTAvoid:
Run Random Exploit Scriptand HopePhase 30 — Windows Assessment
Section titled “Phase 30 — Windows Assessment”On an authorized Windows host:
whoamiThen:
whoami /allRecord:
User
Groups
Privileges
Integrity
DomainPhase 31 — Review Windows System Information
Section titled “Phase 31 — Review Windows System Information”Use:
systeminfoDocument:
Operating System
Build
Architecture
Domain
System TypePhase 32 — Review Local Users
Section titled “Phase 32 — Review Local Users”Where available:
Get-LocalUserLook for:
Unexpected Accounts
Dormant Accounts
Administrative Accounts
Service AccountsPhase 33 — Review Local Administrators
Section titled “Phase 33 — Review Local Administrators”Use:
Get-LocalGroupMember Administratorsor:
net localgroup administratorsDocument:
Local Admins
Domain Admin Groups
Support Groups
Service AccountsPhase 34 — Review Windows Services
Section titled “Phase 34 — Review Windows Services”Use:
Get-ServiceFocus on:
Service Purpose
Service Identity
Startup Type
Business RequirementPhase 35 — Review Scheduled Tasks
Section titled “Phase 35 — Review Scheduled Tasks”Use:
Get-ScheduledTaskInvestigate:
Task Owner
Executable
Trigger
Privilege Context
Business PurposePhase 36 — Review Windows Network Exposure
Section titled “Phase 36 — Review Windows Network Exposure”Use:
netstat -anoCompare the results with your external enumeration.
Ask:
Which ProcessesOwn the Listening Ports?Phase 37 — Windows Privilege Assessment Model
Section titled “Phase 37 — Windows Privilege Assessment Model”Use:
CURRENT IDENTITY ↓GROUPS ↓PRIVILEGES ↓LOCAL ADMINS ↓SERVICES ↓SCHEDULED TASKS ↓FILES / REGISTRY ↓DOMAIN RELATIONSHIPSPhase 38 — Identify Active Directory Membership
Section titled “Phase 38 — Identify Active Directory Membership”From an authorized domain-connected system:
$env:USERDOMAINwhoami /groupsDetermine whether the system participates in:
Workgroup
Domain
Administrative TierPhase 39 — Enumerate Domain Context
Section titled “Phase 39 — Enumerate Domain Context”Where permitted:
net user /domainnet group /domainYour objective is to understand:
Users
Groups
Roles
Administrative StructurePhase 40 — Identify Privileged Groups
Section titled “Phase 40 — Identify Privileged Groups”Review:
net group "Domain Admins" /domainAlso investigate other privileged or delegated groups relevant to your lab.
Remember:
PrivilegeDoes Not EqualDomain Admins OnlyPhase 41 — Map Identity Relationships
Section titled “Phase 41 — Map Identity Relationships”Build:
USER ↓GROUP ↓COMPUTER ↓APPLICATION ↓DATAExample:
support01 ↓ITSupport ↓Local Admin on APP01 ↓Application Administration ↓Sensitive ServicePhase 42 — Review Service Accounts
Section titled “Phase 42 — Review Service Accounts”Document:
Account
Purpose
Host
Service
Privilege
Group Membership
Password GovernanceAsk:
Does the AccountHave More AccessThan the Service Needs?Phase 43 — Review File Shares
Section titled “Phase 43 — Review File Shares”For a known authorized Windows server:
net view \\FILE01Review:
Share Name
Purpose
Access
Data Classification
Business OwnerPhase 44 — Review Share Permissions
Section titled “Phase 44 — Review Share Permissions”Ask:
Who Can Read?
Who Can Write?
Who Can Modify?
Who Owns the Data?
Is Access Necessary?Phase 45 — Sensitive Information Exposure
Section titled “Phase 45 — Sensitive Information Exposure”In the training environment, intentionally planted files may include:
Configuration Files
Deployment Notes
Backup Files
Operational Documentation
ScriptsYour objective is not:
Collect EverythingIt is:
Prove ExposureUsing Minimum EvidencePhase 46 — Understand Credential Exposure
Section titled “Phase 46 — Understand Credential Exposure”Enterprise environments may accidentally expose authentication material through:
Configuration
Scripts
Backups
Documentation
Overly Permissive SharesFor this lab, use only synthetic credentials intentionally created for the training environment.
If discovered, document:
Location
Affected Service
Access Required
Potential Scope
Recommended RemediationDo not reuse credentials outside the authorized lab.
Phase 47 — Map Trust Relationships
Section titled “Phase 47 — Map Trust Relationships”Enterprise compromise often follows trust.
Example:
WEB01 | | Application Connection vAPP01 | | Database Connection vDB01Another:
USER ↓SUPPORT GROUP ↓SERVER ADMINISTRATION ↓APP01Phase 48 — Review Network Segmentation
Section titled “Phase 48 — Review Network Segmentation”Suppose the architecture intends:
USER NETWORK | X |DATABASE NETWORKBut application servers require:
APP NETWORK | vDATABASE NETWORKYour assessment should verify whether the actual access matches the design.
Phase 49 — Test Segmentation Safely
Section titled “Phase 49 — Test Segmentation Safely”From each authorized position, record which lab services are reachable.
You may use targeted connectivity checks.
For example:
nc -nv <LAB_IP> <PORT>or targeted Nmap enumeration against the authorized destination.
Do not broadly scan networks outside scope.
Segmentation Matrix
Section titled “Segmentation Matrix”Create:
| Source | Destination | Service | Expected | Observed |
|---|---|---|---|---|
| User | DB | Database | Denied | Denied |
| Web | App | Application | Allowed | Allowed |
| App | DB | Database | Allowed | Allowed |
| User | Admin | RDP | Denied | Review |
Phase 50 — Identify Segmentation Weaknesses
Section titled “Phase 50 — Identify Segmentation Weaknesses”A finding may exist when:
Expected:
USER XDATABASEbut:
Observed:
USER ↓DATABASEDocument the exact:
Source
Destination
Service
Expected Rule
Observed BehaviorPhase 51 — Understand Pivoting Conceptually
Section titled “Phase 51 — Understand Pivoting Conceptually”A multi-network environment may require traffic to pass through an authorized intermediary.
Conceptually:
PENTEST VM ↓WEB01 ↓APP NETWORK ↓APP01For this lab, focus on understanding:
Routing
Reachability
Trust
Segmentation
Attack Pathsrather than stealth or uncontrolled tunneling.
Phase 52 — Identify Multi-Stage Attack Paths
Section titled “Phase 52 — Identify Multi-Stage Attack Paths”Individual weaknesses become more serious when chained.
Example:
WEB APPLICATION ↓LOW-PRIVILEGE APP ACCESS ↓EXCESSIVE SERVER PERMISSION ↓APPLICATION CONFIGURATION ↓SERVICE IDENTITY ↓INTERNAL APPLICATION ↓SENSITIVE DATAPhase 53 — Build an Enterprise Attack Graph
Section titled “Phase 53 — Build an Enterprise Attack Graph”Example:
External / User Network | v WEB01 | | Application Trust v APP01 | | Service Relationship v DB01Identity path:
user01 | vITSupport | vAPP01 Admin | vApplication ServiceCombine the graphs.
Phase 54 — Think in Relationships
Section titled “Phase 54 — Think in Relationships”Instead of:
Finding 1
Finding 2
Finding 3ask:
Can Finding 1Enable Finding 2?
Can Finding 2Reach Finding 3?
What Is the Final Asset?Phase 55 — Create Attack Path AP-01
Section titled “Phase 55 — Create Attack Path AP-01”Example:
Attack Path:AP-01
Starting Position:Standard domain user
Relationship:User is member of ITSupport
Relationship:ITSupport has unnecessary administrationof APP01
Relationship:APP01 stores application configuration
Target:Sensitive internal application
Impact:A compromised support identity couldobtain unintended control over abusiness-critical application.Phase 56 — Create Attack Path AP-02
Section titled “Phase 56 — Create Attack Path AP-02”Example:
Attack Path:AP-02
Starting Position:WEB01
Relationship:WEB01 can communicate with APP01
Relationship:APP01 can communicate with DB01
Weakness:Segmentation rules are broader thanbusiness requirements.
Target:Database environment
Impact:Compromise of an upstream applicationcould increase exposure of downstreamsystems.Phase 57 — Create Attack Path AP-03
Section titled “Phase 57 — Create Attack Path AP-03”Example:
Attack Path:AP-03
Starting Position:Domain user
Relationship:Broad file-share access
Weakness:Operational configuration exposed
Relationship:Configuration references privilegedservice identity
Target:Enterprise application
Impact:Unnecessary information exposure couldsupport further unauthorized access.Phase 58 — Validate the Path
Section titled “Phase 58 — Validate the Path”For every attack path determine:
Is the Starting Position Realistic?
Does Relationship 1 Exist?
Does Relationship 2 Exist?
Is the Target Reachable?
Are Additional Conditions Required?
Which Security Controls Interrupt the Path?Phase 59 — Do Not Over-Exploit
Section titled “Phase 59 — Do Not Over-Exploit”Your goal is to prove:
PATH EXISTSnot:
CAUSE MAXIMUM IMPACTStop when sufficient evidence demonstrates the security risk.
Phase 60 — Capture Evidence
Section titled “Phase 60 — Capture Evidence”Good evidence might include:
Command Output
Configuration Snippet
Permission Listing
Network Result
Application Screenshot
Group Membership
Access-Control EvidenceRedact unnecessary secrets.
Phase 61 — Build the Findings Register
Section titled “Phase 61 — Build the Findings Register”| ID | Finding | Asset | Severity | Attack Path |
|---|---|---|---|---|
| ENT-001 | Excessive server administration | APP01 | High | AP-01 |
| ENT-002 | Weak segmentation | Network | High | AP-02 |
| ENT-003 | Sensitive configuration exposure | FILE01 | High | AP-03 |
| ENT-004 | Excessive service privilege | APP01 | High | AP-01 |
| ENT-005 | Unnecessary exposed service | WEB01 | Medium | — |
Phase 62 — Prioritize Findings
Section titled “Phase 62 — Prioritize Findings”Consider:
Exploitability
Required Access
Business Criticality
Privilege Gained
Data Exposure
Attack-Path Position
Existing ControlsRisk Model
Section titled “Risk Model”RISK=LIKELIHOOD×IMPACTBut enterprise context matters.
A medium weakness on:
Critical Attack Pathmay deserve higher remediation priority.
Phase 63 — Finding ENT-001
Section titled “Phase 63 — Finding ENT-001”Title:Excessive Administrative Access toApplication Server
Affected Asset:APP01
Observation:The ITSupport group has localadministrative access to a sensitiveapplication server despite the role notrequiring full system administration.
Impact:Compromise of an ITSupport identity couldprovide administrative control over theapplication server.
Recommendation:Remove unnecessary administrative accessand implement role-specific delegatedadministration.Phase 64 — Finding ENT-002
Section titled “Phase 64 — Finding ENT-002”Title:Insufficient Network Segmentation
Affected Environment:Application and Database Networks
Observation:Network access is broader than requiredfor documented application communication.
Impact:Compromise of an upstream system couldincrease access to higher-value internalassets.
Recommendation:Restrict network rules to explicitlyrequired source, destination, protocol,and port combinations.Phase 65 — Finding ENT-003
Section titled “Phase 65 — Finding ENT-003”Title:Sensitive Configuration Exposed ThroughFile Share
Affected Asset:FILE01
Observation:A broadly accessible share containsoperational configuration that shouldonly be available to applicationadministrators.
Impact:The information could assist an attackerin understanding internal services andidentity relationships.
Recommendation:Restrict access and move sensitiveconfiguration to an appropriatelycontrolled repository.Phase 66 — Finding ENT-004
Section titled “Phase 66 — Finding ENT-004”Title:Excessive Service Account Privilege
Observation:An application service identity haspermissions beyond the requirements ofits documented function.
Impact:Compromise of the application couldinherit unnecessary access to additionalenterprise resources.
Recommendation:Apply least privilege and periodicallyreview service-account entitlements.Phase 67 — Finding ENT-005
Section titled “Phase 67 — Finding ENT-005”Title:Unnecessary Network Service Exposure
Observation:A management service is reachable froma network segment that does not requireadministrative access.
Impact:The additional exposure increases theattack surface of the system.
Recommendation:Restrict management interfaces toapproved administrative networks.Phase 68 — Root Cause Analysis
Section titled “Phase 68 — Root Cause Analysis”Do not stop at:
Weak PermissionAsk:
Why Was the Permission Created?
Who Owns It?
Is It Still Required?
Was It Temporary?
Is There a Review Process?
Why Did Security MonitoringNot Detect It?Phase 69 — Map Root Causes
Section titled “Phase 69 — Map Root Causes”Common enterprise root causes include:
Privilege Creep
Legacy Configuration
Poor Asset Inventory
Weak Segmentation
Shared Administration
Weak Service Account Governance
Missing Access Reviews
Configuration Drift
Insufficient OwnershipPhase 70 — Recommend Network Hardening
Section titled “Phase 70 — Recommend Network Hardening”Consider:
Network Segmentation
Management Networks
Host Firewalls
Default-Deny Rules
Service Restriction
Administrative Access ControlPhase 71 — Recommend Identity Hardening
Section titled “Phase 71 — Recommend Identity Hardening”Consider:
Least Privilege
Dedicated Admin Accounts
Administrative Tiering
MFA
Privileged Access Management
Managed Service Accounts
Access ReviewsPhase 72 — Recommend Windows Hardening
Section titled “Phase 72 — Recommend Windows Hardening”Consider:
Windows LAPS
Endpoint Protection
Host Firewall
Secure Baselines
Restricted Administration
Patch Governance
PowerShell LoggingPhase 73 — Recommend Linux Hardening
Section titled “Phase 73 — Recommend Linux Hardening”Consider:
Least Privilege
Restricted sudo
Secure File Permissions
Service Hardening
SSH Hardening
Patch Governance
Centralized LoggingPhase 74 — Recommend Application Hardening
Section titled “Phase 74 — Recommend Application Hardening”Consider:
Server-Side Authorization
Strong Session Management
Secret Management
Secure Configuration
Input Validation
Logging
Dependency ManagementPhase 75 — Recommend Data Protection
Section titled “Phase 75 — Recommend Data Protection”Consider:
Access Classification
Share Permissions
Encryption
Secret Management
Database Access Control
Backup ProtectionPhase 76 — Recommend Monitoring
Section titled “Phase 76 — Recommend Monitoring”Monitor:
Authentication
Privilege Changes
Administrative Access
Network Connections
Sensitive File Access
Application Events
Security Configuration ChangesPhase 77 — Build Detection Opportunities
Section titled “Phase 77 — Build Detection Opportunities”For every attack path ask:
Where Could ThisHave Been Detected?Example:
User ↓Admin Group Change ↓Server Logon ↓Sensitive Application AccessPotential monitoring points:
Directory
Endpoint
Network
ApplicationPhase 78 — Cleanup
Section titled “Phase 78 — Cleanup”At the end of the lab:
Remove Temporary Files
Remove Temporary Accounts
Revert Permission Changes
Remove Test Group Memberships
Terminate Sessions
Restore Configurations
Secure Evidence
Revert VM Snapshots If RequiredPhase 79 — Retesting
Section titled “Phase 79 — Retesting”After remediation:
ORIGINAL FINDING ↓REPEAT VALIDATION ↓VERIFY CONTROL ↓VERIFY ATTACK PATH ↓CLOSE / REOPENDo not only check:
Was the Configuration Changed?Check:
Was the Attack Path Actually Broken?Phase 80 — Final Enterprise Report
Section titled “Phase 80 — Final Enterprise Report”Structure:
01 Executive Summary
02 Scope
03 Rules of Engagement
04 Methodology
05 Environment Overview
06 Asset Inventory
07 Attack Surface
08 Findings
09 Attack Paths
10 Business Impact
11 Risk Priorities
12 Remediation Roadmap
13 Retest Guidance
14 Cleanup Confirmation
15 Technical AppendixExecutive Summary Example
Section titled “Executive Summary Example”The enterprise penetration test identifiedmultiple weaknesses across network,identity, server, and application layers.
While several findings had moderateindividual impact, combinations ofexcessive administrative access, weaksegmentation, service-account privilege,and information exposure created higherrisk attack paths toward sensitiveenterprise systems.
The primary remediation priority is tobreak these paths through least privilege,network segmentation, service-accounthardening, stronger access governance,and improved monitoring.Attack-Path Report
Section titled “Attack-Path Report”For each path include:
Attack Path ID:
Starting Position:
Required Access:
Step 01:
Step 02:
Step 03:
Target Asset:
Business Importance:
Security Controls:
Security Gaps:
Potential Impact:
Evidence:
Recommended Path Break:
Retest:Finding Template
Section titled “Finding Template”Finding ID:
Title:
Affected Asset:
Severity:
Description:
Evidence:
Required Access:
Security Impact:
Attack Path:
Root Cause:
Recommendation:
Retest Procedure:Student Deliverables
Section titled “Student Deliverables”Complete:
- Authorization record
- Rules of engagement
- Asset inventory
- Network diagram
- Service inventory
- Asset classification
- Web application map
- Linux assessment
- Windows assessment
- Identity assessment
- Active Directory assessment
- File-share assessment
- Service-account review
- Segmentation matrix
- Trust map
- Attack-path diagram
- Findings register
- Risk matrix
- Remediation roadmap
- Cleanup record
- Final enterprise penetration-test report
Enterprise Attack-Path Worksheet
Section titled “Enterprise Attack-Path Worksheet”Path ID:
Starting Asset / Identity:
Initial Access:
Relationship 01:
Relationship 02:
Relationship 03:
Security Control:
Control Weakness:
Final Target:
Target Classification:
Potential Business Impact:
Evidence:
Recommended Path Break:
Retest Method:Three-Pass Enterprise Testing Method
Section titled “Three-Pass Enterprise Testing Method”Use this method throughout the lab.
Pass 01 — Understand
Section titled “Pass 01 — Understand”Hosts
Ports
Services
Users
Applications
Networks
TrustDo not rush.
Pass 02 — Analyze
Section titled “Pass 02 — Analyze”Permissions
Configurations
Authentication
Authorization
Segmentation
Dependencies
Security ControlsPass 03 — Connect
Section titled “Pass 03 — Connect”WEAKNESS +RELATIONSHIP +TRUST =ATTACK PATHThis third pass is where enterprise penetration testing becomes especially valuable.
Common Student Mistakes
Section titled “Common Student Mistakes”Avoid:
Scanning Without Scope
Running Every Tool Available
Ignoring Business Context
Ignoring Asset Criticality
Only Looking for CVEs
Ignoring Identity
Ignoring Service Accounts
Ignoring Internal Applications
Ignoring Network Segmentation
Ignoring File Shares
Ignoring Trust Relationships
Treating Findings Independently
Over-Exploiting Systems
Collecting Excessive Data
Poor Evidence Collection
No Cleanup
No Remediation GuidanceEnterprise Pentesting Interview Questions
Section titled “Enterprise Pentesting Interview Questions”- What is enterprise penetration testing?
- How is it different from vulnerability scanning?
- Why is scoping important?
- What are rules of engagement?
- What is an attack surface?
- Why should assets be classified?
- What is service enumeration?
- Why should manual validation follow automated discovery?
- What is network segmentation?
- How would you test segmentation safely?
- What is lateral movement?
- What is an attack path?
- What is privilege escalation?
- Why is Active Directory important in enterprise pentesting?
- What is a service account?
- Why can service accounts create enterprise risk?
- Why are file shares important?
- What is credential exposure?
- Why should sensitive evidence be minimized?
- What is least privilege?
- What is privilege creep?
- What is administrative tiering?
- What is Windows LAPS?
- What should you check during Linux privilege assessment?
- What should you check during Windows privilege assessment?
- Why are scheduled tasks security-sensitive?
- Why are application dependencies important?
- What is a trust relationship?
- How can a medium-severity weakness become part of a critical attack path?
- Why should testers map relationships between findings?
- What is root-cause analysis?
- How would you prioritize remediation?
- Why should management services be restricted?
- Why are dedicated administrative networks useful?
- How does endpoint logging help?
- How does network monitoring help?
- How does identity monitoring help?
- What is controlled validation?
- Why is cleanup mandatory?
- What should an enterprise penetration-test report contain?
Lab Completion Checklist
Section titled “Lab Completion Checklist”- Authorization confirmed
- Networks documented
- Assets documented
- Exclusions documented
- Rules of engagement established
- Emergency contacts documented
Discovery
Section titled “Discovery”- Assessment position understood
- Hosts discovered
- Ports identified
- Services enumerated
- DNS reviewed
- Asset roles classified
Applications
Section titled “Applications”- HTTP services mapped
- Authentication reviewed
- Authorization reviewed
- Application dependencies identified
- Configuration risks reviewed
- Identity reviewed
- Groups reviewed
- sudo reviewed
- Processes reviewed
- Services reviewed
- Scheduled tasks reviewed
- File permissions reviewed
- Capabilities reviewed
Windows
Section titled “Windows”- Identity reviewed
- Groups reviewed
- Local administrators reviewed
- Services reviewed
- Scheduled tasks reviewed
- Network exposure reviewed
- Domain relationships reviewed
Identity
Section titled “Identity”- Domain users reviewed
- Groups reviewed
- Privileged identities identified
- Service accounts reviewed
- Administrative relationships mapped
Network
Section titled “Network”- Segmentation documented
- Expected access documented
- Observed access documented
- Unnecessary exposure identified
- Trust relationships mapped
Attack Paths
Section titled “Attack Paths”- Findings correlated
- Starting positions identified
- Relationships documented
- Critical targets identified
- Paths validated safely
- Path-breaking controls recommended
Reporting
Section titled “Reporting”- Evidence collected
- Evidence minimized
- Findings documented
- Root causes identified
- Risk ratings assigned
- Remediation roadmap created
- Cleanup completed
- Final report completed
Final Lab Mental Model
Section titled “Final Lab Mental Model”Remember:
ENTERPRISE ↓ASSETS ↓SERVICES ↓APPLICATIONS ↓IDENTITIES ↓PERMISSIONS ↓NETWORKS ↓TRUST ↓SECURITY CONTROLS ↓WEAK RELATIONSHIPS ↓ATTACK PATHS ↓BUSINESS IMPACTA strong enterprise penetration tester does not simply report:
20 Open Ports
12 Vulnerabilities
5 Weak Password PoliciesThe tester explains:
Starting Position ↓Weakness ↓Trust Relationship ↓Privilege ↓Internal System ↓Identity Relationship ↓Critical Assetand then answers the most important question:
Where Should the OrganizationBreak This Attack Path?That is the difference between:
Vulnerability Huntingand:
Enterprise Penetration TestingWhat’s Next?
Section titled “What’s Next?”➡️ Lab 03 — Linux Privilege Escalation
In the next lab, you will focus deeply on the Linux post-access security assessment workflow.
You will work through:
INITIAL LAB ACCESS ↓IDENTITY ↓GROUP MEMBERSHIP ↓SUDO ↓FILESYSTEM PERMISSIONS ↓SERVICES ↓SCHEDULED TASKS ↓SUID / SGID ↓CAPABILITIES ↓APPLICATION CONFIGURATION ↓SECURITY MISCONFIGURATION ↓CONTROLLED VALIDATION ↓ROOT CAUSE ↓REMEDIATIONThe goal is to learn a repeatable methodology for determining why a lower-privileged Linux identity may have more authority than intended, rather than relying on random privilege-escalation scripts.