Shared Drive

BLUF:

If you have an AD file share address and authorization, your job is to (1) identify the protocol and exposure, (2) enumerate access and permissions safely, (3) map it to users/groups and GPOs, and (4) assess risk (sensitive data, misconfigs, abuse paths) without touching content you shouldn’t. Below is a clean, ops-ready flow with commands.

flowchart TD
A[Share Address] --> B{Protocol?}
B -->|SMB/CIFS| C[SMB Enumeration]
B -->|DFS| D[DFS Enumeration]
C --> E[Auth vs Guest]
E --> F[Permissions & ACLs]
F --> G[Content Sensitivity]
G --> H[AD Mapping & Abuse Paths]

1) Identify the share type

Most AD “share drives” are SMB (CIFS), sometimes fronted by DFS.

Resolve basics:

nslookup <server>
nmap -p 445 <server>

2) Anonymous vs authenticated access

Start read-only, least privilege.

# List shares (null session)
smbclient -L //<server> -N

# With creds (domain user)
smbclient -L //<server> -U <domain\\user>

If guest/anonymous lists shares → flag immediately.


3) Enumerate the target share (safely)

Do not download everything. List metadata first.

smbclient //<server>/<share> -U <domain\\user>
# inside smbclient
ls
recurse OFF

Or via mount (read-only if possible):

sudo mount -t cifs //<server>/<share> /mnt/share \
  -o ro,username=<user>,domain=<domain>

4) Permissions & ACLs (this is where findings live)

Check NTFS ACLs—look for Everyone, Authenticated Users, Domain Users with write/modify.

# Linux
getfacl /mnt/share

Windows (preferred for fidelity):

icacls \\server\share

Red flags:


5) Map to AD objects (who

should

have access)

Identify groups tied to the share and expand membership.

# Enumerate group membership
net group "<GroupName>" /domain

BloodHound angle:


6) DFS-specific checks (if applicable)

dfsutil diag viewdfs \\domain.local\dfsroot

7) Sensitive data discovery (light touch)

You’re looking for presence, not exfil.

Patterns to spot-check filenames:

If allowed, hash filenames only or sample directory trees.


8) Abuse paths to test (only if in scope)


9) Reporting: what clients care about

Structure findings like this: