Source profileQuality 93/100Review permissions

brucesongs/kali-claw/skills/storage-san-attack/SKILL.md

storage-san-attack

Storage/SAN/NAS/Object storage penetration testing — iSCSI, Fibre Channel, NFSv3/v4, SMB3, S3-compatible APIs, NetApp ONTAP, Dell EMC, Pure Storage, QNAP, Synology, TrueNAS, NDMP backup tape pilfering, and ransomware patterns targeting storage appliances. Distinct from database-attack (which targets RDBMS/NoSQL query protocols) and cloud-native-vuln-research (which focuses on CVE research rather than storage fabric and appliance pentest).

Source repository stars
67
Declared platforms
2
Static risk flags
3
Last source update
2026-08-19
Source checked
2026-08-28

Decision brief

What it does: where it fits

Supplementary Files: - payloads.md — Attack payloads organized by attack surface: iSCSI, Fibre Channel, NFS, SMB, S3/object storage, vendor APIs (NetApp/Dell/Pure), NDMP, SMI-S/SNMP management, and ransomware patterns - test-cases.md — Structured test case templates (12 cases co…

Best for

  • iSCSI target discovery and LUN access — Discover sendtargets, log in without authentication, mount LUNs outside of any filesystem-level access control, read raw blocks from disk images that may contain databases, VM ima…
  • Fibre Channel zoning bypass — Spoof WWNs, abuse permissive zoning, perform name-server spoofing and FSPF route poisoning on a SAN fabric
  • NFS norootsquash exploitation — Enumerate exports via showmount -e, exploit UID spoofing, write SUID binaries or SSH authorizedkeys to root-squashed vs no-root-squashed exports, bypass NFSv3 filesystem trust

Not for

  • Mounting iSCSI LUNs read-write on production — catastrophic data corruption risk. Always mount read-only during an engagement, and coordinate any read-write test with the customer's storage admin
  • Treating NFSv3 norootsquash as a minor finding — it is full root compromise of every file on the export and frequently the entire host if writable exports overlap with system directories

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeDeclaredSource recordInstall path and trigger
CursorDeclaredSource recordInstall path and trigger
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/brucesongs/kali-claw --skill "skills/storage-san-attack"
Safe inspection promptEditorial

Inspect the Agent Skill "storage-san-attack" from https://github.com/brucesongs/kali-claw/blob/a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e/skills/storage-san-attack/SKILL.md at commit a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Step 1: Discover and Fingerprint Storage Services

    Review the “Step 1: Discover and Fingerprint Storage Services” section in the pinned source before continuing.

    Review and apply the “Step 1: Discover and Fingerprint Storage Services” source section.
  2. 02

    Step 2: Enumerate and Test Authentication

    Review the “Step 2: Enumerate and Test Authentication” section in the pinned source before continuing.

    Review and apply the “Step 2: Enumerate and Test Authentication” source section.
  3. 03

    Step 3: Exploit and Demonstrate Impact

    Review the “Step 3: Exploit and Demonstrate Impact” section in the pinned source before continuing.

    Review and apply the “Step 3: Exploit and Demonstrate Impact” source section.
  4. 04

    Summary

    This skill targets the storage fabric underlying enterprise data — block (SAN), file (NAS), and object storage systems — and the management planes that govern them. It covers protocol-level attacks against iSCSI/Fibre Channel/NFS/SMB, vendor appliance exploitation (NetApp ONTAP,…

    This skill targets the storage fabric underlying enterprise data — block (SAN), file (NAS), and object storage systems — and the management planes that govern them. It covers protocol-level attacks against iSCSI/Fibre C…Tools: nmap (iSCSI/NFS/SMB/SNMP NSE), open-iscsi, Wireshark (SCSI/iSCSI/FCP dissectors), smbclient/Impacket/CrackMapExec, nfs-common/nfsshell/showmount, awscli/aws-vault, lazys3/bucketfinder/S3Scanner/slurp, NetApp ONTA…Domain: storage-san-attack
  5. 05

    Detection Methods

    iSCSI anomalies: Unauthorized initiator access; cross-network LUN mounting.

    iSCSI anomalies: Unauthorized initiator access; cross-network LUN mounting.Fibre Channel anomalies: WWN spoofing; zone bypass attempts.NFSv4 anomalies: Unauthorized export mounts; cross-UID access.

Permission review

Static risk signals and limitations

Writes files

medium · line 151

The documentation asks the agent to create, modify, or delete local files.

Demonstrate ransomware-style impact: write a marker file across an SMB share, mass-encrypt a bucket of test objects (engagement scope permitting)

Sends data out

high · line 209

The documentation includes sending, uploading, or posting data to a remote service.

curl -k -X POST 'https://10.0.0.5/cgi-bin/quick/quick.cgi' \

Network access

medium · line 209

The documentation includes network, browsing, or remote request actions.

curl -k -X POST 'https://10.0.0.5/cgi-bin/quick/quick.cgi' \

Network access

medium · line 213

The documentation includes network, browsing, or remote request actions.

curl -k -u admin:REPLACE_WITH_YOUR_PASSWORD https://10.0.0.5/api/storage/volumes

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score93/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars67SourceRepository attention, not individual Skill quality
Compatibility2 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
brucesongs/kali-claw
Skill path
skills/storage-san-attack/SKILL.md
Commit
a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e
License
MIT
Collected
2026-08-28
Default branch
main
View the original SKILL.md

Storage SAN Attack

Supplementary Files:

  • payloads.md — Attack payloads organized by attack surface: iSCSI, Fibre Channel, NFS, SMB, S3/object storage, vendor APIs (NetApp/Dell/Pure), NDMP, SMI-S/SNMP management, and ransomware patterns
  • test-cases.md — Structured test case templates (12 cases covering enumeration, unauthenticated access, exploitation, vendor abuse, and ransomware scenarios)
  • guides/storage-san-attack-playbook.md — Comprehensive playbook: storage taxonomy, vendor recon matrix, real-world incidents (DeadBolt, eCh0raix, Capital One S3, Tesla AWS S3), lab setup, and defensive hardening

Summary

This skill targets the storage fabric underlying enterprise data — block (SAN), file (NAS), and object storage systems — and the management planes that govern them. It covers protocol-level attacks against iSCSI/Fibre Channel/NFS/SMB, vendor appliance exploitation (NetApp ONTAP, Dell EMC, Pure Storage, QNAP, Synology, TrueNAS), object storage abuse (AWS S3, MinIO, Ceph RGW, Azure Blob, GCP Cloud Storage, OpenStack Swift), and the ransomware patterns that have made NAS appliances a top-tier target since 2021.

Tools: nmap (iSCSI/NFS/SMB/SNMP NSE), open-iscsi, Wireshark (SCSI/iSCSI/FCP dissectors), smbclient/Impacket/CrackMapExec, nfs-common/nfsshell/showmount, awscli/aws-vault, lazys3/bucket_finder/S3Scanner/slurp, NetApp ONTAP ZAPI/REST tools, Dell EMC Naviseccli, Pure Storage Python SDK, snmpwalk/snmp-check, ndmp-utils/NDMPcopy, MinIO Client (mc)/rclone.

Domain: storage-san-attack

MITRE ATT&CK: T1552 (Unsecured Credentials), T1021 (Remote Services), T1486 (Data Encrypted for Impact), T1530 (Data from Cloud Storage Object), T1213 (Data from Information Repositories)

Detection Methods

Storage System Audit

  • iSCSI anomalies: Unauthorized initiator access; cross-network LUN mounting.
  • Fibre Channel anomalies: WWN spoofing; zone bypass attempts.
  • NFSv4 anomalies: Unauthorized export mounts; cross-UID access.
  • SMB3 anomalies: Anomalous share access; encryption downgrade.

SIEM Detection Rules

  • Splunk SPL (storage): index=san sourcetype=iscsi | stats count by initiator_iqn | sort -count
  • NetApp / Dell EMC / QNAP audit: Native storage system logging.

Defense Evasion Techniques

Storage Compromise Stealth

  • Use legitimate initiator: Spoof authorized initiator IQN/WWN; appears as legitimate host.
  • Off-hours access: Storage activity often low at night; blend with maintenance.
  • Mimic legitimate patterns: Match typical backup/replication traffic patterns.

LUN Compromise Stealth

  • Snapshot abuse: Mount snapshot read-only; no audit on primary LUN.
  • Replication pivot: Use replication traffic to access LUN at DR site.
  • Backup tape/DVD abuse: Some legacy systems still use tape; less monitored.

Differentiation

This skill is distinct from adjacent domains. Practitioners must choose the right skill for the target.

vs. database-attack

Dimensionstorage-san-attackdatabase-attack
Target layerStorage fabric (block/file/object) and storage appliancesRDBMS/NoSQL query engines
ProtocolsiSCSI, FC, NFS, SMB, S3 API, NDMP, SMI-SOracle TNS, MySQL, PostgreSQL TDS, MongoDB wire, Redis RESP
Victim systemNetApp FAS, Dell EMC Unity, QNAP NAS, AWS S3, MinIOOracle DB, MySQL, Postgres, MongoDB, Redis
Attack primitiveLUN mount, file share access, object GET, appliance consoleSQL query, stored procedure exec, NoSQL operator injection
Typical finding"NFS export allows root, world-readable" / "S3 bucket listable""Empty root MySQL password" / "odat booleans all true"

If you are attacking a SQL listener, that is database-attack. If you are attacking the storage array underneath the database, that is storage-san-attack. In real engagements, both often apply (a database may sit on an iSCSI LUN exported by a NetApp array).

vs. cloud-native-vuln-research

Dimensionstorage-san-attackcloud-native-vuln-research
ObjectivePentest a deployed storage system for misconfig, weak creds, exposed surfaceDiscover 0-day/CVE in cloud-native software (k8s, container runtimes, IaC)
OutputEngagement findings, exploited pathsCVE filings, security advisories, patches
Time horizonDays-to-weeks (one engagement)Weeks-to-months (research cycle)
ScopeOne customer's storage estateVendor ecosystem (CNCF projects, containerd, etc.)

If the task is "find CVEs in containerd," use cloud-native-vuln-research. If the task is "test the customer's QNAP NAS for DeadBolt-style exposure," use storage-san-attack.

vs. cloud-security

cloud-security covers the broader cloud posture (IAM, VPC, KMS, monitoring). This skill narrows to storage protocols and appliances regardless of whether they live on-prem (NetApp FAS) or in cloud (AWS S3, Azure Blob). When attacking S3 specifically, use this skill; for broader AWS account review, use cloud-security.

Use Cases

  1. iSCSI target discovery and LUN access — Discover sendtargets, log in without authentication, mount LUNs outside of any filesystem-level access control, read raw blocks from disk images that may contain databases, VM images, or secrets
  2. Fibre Channel zoning bypass — Spoof WWNs, abuse permissive zoning, perform name-server spoofing and FSPF route poisoning on a SAN fabric
  3. NFS no_root_squash exploitation — Enumerate exports via showmount -e, exploit UID spoofing, write SUID binaries or SSH authorized_keys to root-squashed vs no-root-squashed exports, bypass NFSv3 filesystem trust
  4. SMB share access and relay — Enumerate shares via null session, test SMB signing configuration, perform NTLM relay (ntlmrelayx) against storage appliances, abuse Kerberos constrained delegation when storage services are domain-joined
  5. S3 bucket enumeration and ACL/policy abuse — Enumerate public buckets (lazys3, S3Scanner, slurp), abuse permissive ACLs, escalate via over-privileged IAM role assumption, extract credentials from public URL patterns (https://s3.amazonaws.com/bucket/)
  6. Vendor API exploitation — NetApp ONTAP ZAPI auth bypass (CVE-2018-8316 historical pattern), Dell EMC Naviseccli default credentials (admin/admin, nasadmin/nasadmin), Pure Storage Purity token theft from exposed metadata endpoints, QNAP default admin/admin
  7. NDMP backup tape pilfering — Connect to NDMP daemon on port 10000, abuse cleartext authentication, read backup content, extract embedded database or VM credentials from backup streams
  8. SMI-S / SNMP enumeration — Enumerate storage topology via SMI-S WBEM/CIM, abuse read-write SNMP community strings to extract LUN mappings and administrator contacts
  9. NAS ransomware assessment — Evaluate a QNAP/Synology/TrueNAS deployment for DeadBolt-style or eCh0raix exposure: internet-facing admin console, default credentials, missing 2FA, exposed SMB/NFS to WAN
  10. Object storage ransomware assessment — Test S3 Object Lock / versioning configuration, evaluate whether an attacker with one IAM role can mass-encrypt or mass-delete objects across buckets
  11. Storage appliance lateral movement — Pivot from a compromised host to a storage array using harvested credentials, then read VM disk images or database backups to escalate further
  12. DRBD / replication abuse — Intercept or inject into DRBD replication streams, abuse rsync-over-SSH trust to become the primary for a replicated storage cluster

Core Tools

ToolPurposeCommand Example
nmap + NSEService discovery, iSCSI/NFS/SMB/SNMP enumeration via built-in NSE scriptsnmap -sV -p 3260,2049,445,161 --script=iscsi-info,nfs-showmount,smb-enum-shares,snmp-win32-services 10.0.0.0/24
open-iscsiiSCSI initiator — sendtargets discovery, login, session management, LUN accessiscsiadm -m discovery -t sendtargets -p 10.0.0.5; iscsiadm -m node -T iqn.2001-04.com.example:sn Lun0 -p 10.0.0.5 -l
WiresharkProtocol analysis with SCSI/iSCSI/FCP/FCIP dissectors; captures cleartext NDMP and SNMP`tshark -i eth0 -Y "iscsi
smbclient / Impacket / CrackMapExecSMB share access, null session, relay, pass-the-hash against SMB-enabled NAScrackmapexec smb 10.0.0.0/24 -u '' -p '' --shares; ntlmrelayx.py -t smb://10.0.0.5 -smb2support
nfs-common / nfsshell / showmountNFS enumeration and exploitation — exports listing, UID spoofing, no_root_squash abuseshowmount -e 10.0.0.5; mount -t nfs -o vers=3,nolock 10.0.0.5:/data /mnt/nfs; nfsshell -h 10.0.0.5
awscli / aws-vaultS3 API enumeration, object retrieval, IAM role assumption, bucket policy inspectionaws s3api list-buckets --profile eng; aws s3 ls s3://target-bucket --no-sign-request
lazys3 / bucket_finder / S3Scanner / slurpBucket name brute-force against S3 endpoint (AWS, MinIO, Wasabi, Backblaze B2)python3 lazys3.py target-prefix; ruby bucket_finder.rb wordlist.txt --download; python3 S3Scanner.py --list-file buckets.txt
NetApp ONTAP ZAPI/RESTNetApp cluster API — volume/qtree/SVM enumeration, credential extraction from loaded SVMscurl -k -u admin:REPLACE_WITH_YOUR_PASSWORD https://netapp/api/storage/volumes; python3 netapp_zapi.py -s netapp -u admin show-volumes
Dell EMC Naviseccli / NaviSphereDell EMC VNX/Unity CLARiiON management — list storage processors, capture SP logs, user enumeration/opt/Navisphere/bin/naviseccli -h 10.0.0.5 -user admin -password REPLACE_WITH_YOUR_PASSWORD storagepool -list
Pure Storage Python SDKPure Storage REST API client — volume, host, host-group enumeration, API token auditfrom purestorage import FlashArray; fa = FlashArray("10.0.0.5", "admin", "REPLACE_WITH_YOUR_TOKEN"); fa.list_volumes()
snmpwalk / snmp-checkStorage MIB enumeration (NetApp, EMC, Synology, QNAP vendor MIBs; IF-MIB for LUN topology)snmpwalk -v2c -c public 10.0.0.5 .1.3.6.1.4.1.789; snmp-check 10.0.0.5 -c public
ndmp-utils / NDMPcopyNDMP backup protocol tools — enumerate backup tape sessions, copy data from a target NDMP daemonndmpcopy 10.0.0.5 10000 some-tape-session /tmp/out; ndmp-poke -h 10.0.0.5 -p 10000
MinIO Client (mc) / rcloneMulti-cloud object storage client — bucket enumeration against MinIO/Ceph RGW/Wasabi/B2/AWS S3; rclone for sync abusemc alias set eng http://10.0.0.5:9000 REPLACE_WITH_YOUR_KEY REPLACE_WITH_YOUR_SECRET; mc ls eng/; rclone copy :s3,provider=Minio,endpoint=http://10.0.0.5:9000:/bucket ./out

Methodology

Attack Chain

Recon & Discovery → Protocol/Service Enumeration → Auth Testing → Exploitation → Post-Exploitation / Ransomware Simulation
   (nmap/snmpwalk)   (showmount/iscsiadm/aws s3api)  (default creds, ACL)  (LUN mount, S3 GET)  (credential harvest, mass encrypt)

Phase 1: Recon and Discovery

  • Identify storage services on common ports: iSCSI (3260), NFS (2049), SMB (445), S3/MinIO (9000, 80, 443), NDMP (10000), SNMP (161), vendor management (NetApp 443, Dell EMC 2162, Pure 443, QNAP 8080, Synology 5000/5001, TrueNAS 80/443)
  • Capture banners via nmap service detection; many storage appliances leak vendor and version in HTTP titles
  • Discover iSCSI targets via sendtargets against any host answering on 3260
  • Enumerate SMB and NFS exports with showmount -e and null-session share enumeration
  • Discover S3-compatible endpoints via banner on ports 80/443/9000, then probe /minio/health/live to fingerprint MinIO

Phase 2: Protocol/Service Enumeration

  • iSCSI: list IQNs, target names, LUN numbers; identify which targets require CHAP and which do not
  • NFS: enumerate exports, identify no_root_squash exports, check UID mapping behavior, list accessible files
  • SMB: enumerate shares, share permissions, signing configuration, dialect (SMB1/2/3), Kerberos support
  • S3: enumerate buckets by name brute-force, list object counts via ListObjects, fingerprint provider via response headers (Server: AmazonS3, Server: MinIO, Server: Ceph)
  • Vendor: enumerate SVMs (NetApp), storage processors (Dell EMC), hosts/host-groups (Pure), volumes and snapshots

Phase 3: Authentication Testing

  • Test vendor default credentials against admin interfaces (admin/admin, nasadmin/nasadmin, root/admin on Synology, admin/admin on QNAP)
  • Test SMB null session and anonymous LDAP bind where storage is domain-joined
  • Test S3 anonymous (no-signed-request) access on every discovered bucket
  • Test SNMP read-write community strings (private, readwrite) against storage MIBs
  • Brute-force iSCSI CHAP secrets via custom scripts against iscsiadm login attempts
  • Test NDMP cleartext auth (password field left blank, or known default backup/backup)

Phase 4: Exploitation

  • iSCSI unauth: log in to a target without CHAP, mount the LUN locally, run fdisk -l, mount the filesystem read-only, read VM images and database files directly from disk
  • NFS no_root_squash: write SUID shell, write authorized_keys to a user's .ssh/, drop cron jobs in /etc/cron.d/
  • SMB relay: use ntlmrelayx to dump SAM from a domain-joined Windows NAS, or pivot to other SMB hosts
  • S3 object retrieval: download all objects, search for embedded secrets (access keys, DB passwords, private SSH keys)
  • Vendor API: pull vserver credentials from NetApp, pull host IQNs from Dell EMC, harvest API tokens from Pure Storage users
  • NDMP: connect and request backup stream dump, parse for embedded database or VM credentials

Phase 5: Post-Exploitation / Ransomware Simulation

  • Demonstrate ransomware-style impact: write a marker file across an SMB share, mass-encrypt a bucket of test objects (engagement scope permitting)
  • Pivot from storage to the workloads it backs: a database backup on NDMP tape may contain live credentials; a VM image on an iSCSI LUN may contain authorized_keys
  • Harvest credentials from appliance configuration: NetApp vserver services name-service often caches LDAP binds; Synology DSM stores S3 sync credentials in /etc/synology/s3.conf
  • Cover tracks per engagement scope: most appliances log to a syslog target; coordinate with the customer's SOC to validate detection

Defense Perspective

Defense MeasureDescriptionPriority
Block-level encryptionLUN-level encryption (NetApp NVE, Pure Purity Encryption); encrypts at-rest in the arrayCRITICAL
iSCSI CHAP mutual authBidirectional CHAP with strong secrets; never expose LUNs without authenticationCRITICAL
Fibre Channel zoningSingle-initiator-single-target zoning; deny promiscuous zones; enable fabric bindingCRITICAL
NFSv4 with Kerberos (krb5i/krb5p)Replace NFSv3 + no_root_squash with NFSv4 sec=krb5p for integrity + privacyCRITICAL
SMB signing required + LDAP channel bindingReject SMB1; require signing on all sessions; enforce LDAP channel binding on domain-joined NASCRITICAL
S3 Block Public Access + bucket policiesEnable Block Public Access at account and bucket level; deny s3:PutObject without TLS; enforce Object LockCRITICAL
Vendor security hardening guidesApply NetApp ONTAP Security Hardening Guide, Dell EMC Unity Security Guide, Pure Security Hardening, QNAP Security Best Practices, Synology Security Best PracticesHIGH
MFA on appliance adminRequire MFA for all admin logins (NetApp, Dell EMC, Pure, QNAP, Synology, TrueNAS)HIGH
Patch firmware within 30 daysAppliances are CVE-rich; vendor advisories must be triaged within 30 days of releaseHIGH
NDMP authentication + ACLRequire MD5 or SHA auth on NDMP daemons; restrict to backup server IPs onlyHIGH
SMI-S over HTTPS onlyDisable cleartext SMI-S; require HTTPS with provider certificate validationHIGH
SNMPv3 onlyDisable SNMPv1/v2c; require SNMPv3 with authPrivHIGH
Object Lock + versioningEnable S3 Object Lock (compliance mode) and bucket versioning on critical bucketsHIGH
Network segmentationStorage VLAN isolated from user VLANs; admin interfaces reachable only via jump hostCRITICAL
Audit logging + SIEM ingestionForward appliance audit logs to SIEM; alert on admin logins outside business hours, mass-deletion, mass-encryption eventsHIGH

Practical Steps

See payloads.md for detailed commands, and test-cases.md for complete test checklists. Below is a summary of core operations at each stage.

Step 1: Discover and Fingerprint Storage Services

# Quick port sweep across common storage protocols
nmap -sV -p 3260,2049,445,161,10000,9000,8080,5000,5001 10.0.0.0/24

# iSCSI sendtargets discovery
iscsiadm -m discovery -t sendtargets -p 10.0.0.5

# NFS exports enumeration
showmount -e 10.0.0.5

# SMB share enumeration with null session
crackmapexec smb 10.0.0.0/24 -u '' -p '' --shares

# SNMP storage MIB enumeration (NetApp = .1.3.6.1.4.1.789)
snmpwalk -v2c -c public 10.0.0.5 .1.3.6.1.4.1.789 | head -50

Step 2: Enumerate and Test Authentication

# iSCSI login without CHAP
iscsiadm -m node -T iqn.2001-04.com.example:sn.Lun0 -p 10.0.0.5 -l

# SMB default credential test
crackmapexec smb 10.0.0.5 -u admin -p admin

# QNAP default admin/admin login
curl -k -X POST 'https://10.0.0.5/cgi-bin/quick/quick.cgi' \
  -d 'user=admin&password=REPLACE_WITH_YOUR_PASSWORD&action=login'

# NetApp ONTAP REST API
curl -k -u admin:REPLACE_WITH_YOUR_PASSWORD https://10.0.0.5/api/storage/volumes

# Dell EMC Naviseccli default creds
/opt/Navisphere/bin/naviseccli -h 10.0.0.5 -user nasadmin -password nasadmin getagent

# AWS S3 bucket anonymous probe
aws s3 ls s3://REPLACE_WITH_BUCKET_NAME --no-sign-request --region us-east-1

Step 3: Exploit and Demonstrate Impact

# Mount iSCSI LUN (target already logged in)
iscsiadm -m session -P 3   # find /dev/sdX assigned to LUN
mount -o ro /dev/sdb1 /mnt/lun   # read-only mount for safety

# NFS no_root_squash exploitation
mkdir /mnt/nfs && mount -t nfs -o vers=3,nolock 10.0.0.5:/data /mnt/nfs
cp /bin/bash /mnt/nfs/suid_shell && chmod 4777 /mnt/nfs/suid_shell
echo 'ssh-rsa AAAA... REPLACE_WITH_YOUR_PUBLIC_KEY' >> /mnt/nfs/root/.ssh/authorized_keys

# SMB relay
ntlmrelayx.py -t smb://10.0.0.5 -smb2support --escalate-user DOMAIN\\user

# S3 object download
aws s3 sync s3://REPLACE_WITH_BUCKET_NAME ./out --no-sign-request
grep -rE 'AKIA[0-9A-Z]{16}|aws_secret_access_key' ./out

Common Pitfalls

  • Mounting iSCSI LUNs read-write on production — catastrophic data corruption risk. Always mount read-only during an engagement, and coordinate any read-write test with the customer's storage admin
  • Treating NFSv3 no_root_squash as a minor finding — it is full root compromise of every file on the export and frequently the entire host if writable exports overlap with system directories
  • Ignoring SMB signing configuration — even if you cannot relay, missing signing is a free downgrade-attack primitive that affects every host the NAS can reach
  • Bucket enumeration without considering region — AWS S3 returns different results for region-scoped vs global calls; always test both --region us-east-1 and the bucket's home region
  • Skipping vendor default credentials on appliances — QNAP, Synology, older NetApp, and Dell EMC deployments ship with well-known defaults; missing these is an avoidable miss
  • Forgetting NDMP — backup daemons are often forgotten, exposed on the LAN, and contain the most valuable data on the storage estate (full backups with live credentials)
  • Ransomware simulation without explicit authorization — even writing a marker file is a high-impact action; always have a separate authorization for ransomware-style tests
  • Dismissing SNMPv2c as low risk — read-write community strings on storage appliances allow LUN reassignment, fabric reconfiguration, and credential extraction; treat as CRITICAL
  • Testing Fibre Channel fabrics without coordination — fabric attacks (WWN spoofing, FSPF poisoning) can split a production SAN; always test on a dedicated fabric or in a maintenance window

Integration with Other Skills

  • database-attack: A database may sit on an iSCSI LUN exported by a NetApp array; compromise the array and you own the database at the block level, bypassing DB authentication entirely
  • ad-ldap-attack: Domain-joined NAS appliances (NetApp, Dell EMC, Synology) participate in AD authentication; AD compromise enables storage compromise and vice versa
  • cloud-security: S3 attacks here complement broader AWS/Azure/GCP posture review; coordinate to avoid double-counting findings
  • password-attack: Vendor appliances often share credentials across an estate; spray findings across NetApp/Dell/Pure instances
  • privilege-escalation: Storage access (especially iSCSI LUNs containing /etc/shadow or Windows SAM) is a reliable local privesc primitive
  • ransomware-triage (if present): NAS-targeting ransomware (DeadBolt, eCh0raix) and S3 mass-encryption scenarios feed into incident response playbooks
  • digital-forensics: Compromised appliances leave audit trails in vendor logs (NetApp auditlog, Synology syslog, AWS CloudTrail) — coordinate evidence preservation

Legal and Ethical Considerations

Storage attacks carry elevated legal risk because storage systems hold regulated data at scale — a single misconfigured S3 bucket can expose millions of PII records, and a corrupted LUN can destroy production databases. Always confirm scope covers the specific storage system, snapshot or unmount production LUNs before any read-write test, and never run ransomware simulation without a separate signed authorization. Evidence (downloaded S3 objects, mounted LUN contents, NDMP tape streams) must be encrypted at rest in the engagement vault and destroyed at the end of the engagement unless retention is explicitly authorized. Coordinate with the customer's storage administrator before any vendor API call that could modify state (vserver modify, storage volume destroy, s3:DeleteObject).

Storage Attack Surface Taxonomy

Storage attacks divide along three protocol families. Each family has distinct attack primitives, defensive boundaries, and incident patterns.

Block (SAN) — iSCSI, FC, FCoE, NVMe-oF, SAS

Block storage presents raw LUNs to initiators. The attacker's goal is to access a LUN outside of any filesystem-level authorization. Once a LUN is mounted, the attacker sees the raw disk — including deleted files, slack space, and filesystem metadata — bypassing every OS-level control on the host that owns the LUN.

Key attacks: sendtargets enumeration, CHAP bypass, LUN masking abuse, WWN spoofing, zoning bypass, FSPF poisoning, NVMe-oF DH-HMAC-CHAP bypass.

File (NAS) — NFS, SMB, AFP, NCP

File storage presents a network filesystem with per-file authorization. Attacks target the protocol's authorization model: NFS UID mapping and root squashing, SMB share/NTFS ACLs and signing, AFP guest access. The goal is to read or write files outside of what the user's identity should permit.

Key attacks: NFS no_root_squash, NFSv4 ACL bypass, SMB null session, SMB relay, SMB signing downgrade, Kerberos delegation abuse, AFP guest write.

Object — S3, Azure Blob, GCP Cloud Storage, Swift

Object storage presents a flat namespace accessed via HTTP API with per-request signing. Attacks target bucket policies, ACLs, IAM roles, and URL signing. The goal is to enumerate or access objects without authorization, or to escalate privileges via over-permissive IAM.

Key attacks: bucket name brute-force, ACL bypass, policy escalation, IAM role assumption, URL signing replay, credential extraction from public objects.

Vendor Management Planes

Every storage vendor exposes a management API (NetApp ONTAP REST/ZAPI, Dell EMC Naviseccli/REST, Pure Storage REST, HPE Nimble REST, QNAP QTS web, Synology DSM web, TrueNAS API). These planes are CVE-rich and frequently internet-exposed. Compromise of the management plane yields full control of every LUN, share, and bucket on the appliance.

Key attacks: default credentials, auth bypass, token theft, SNMP RW community abuse, SMI-S enumeration, NDMP cleartext.

Credential Sources on Storage Appliances

Storage appliances are credential caches for the broader enterprise. They typically hold:

  • SMB share credentials for downstream domain trusts (NTLM hashes, Kerberos tickets cached in memory)
  • NFS export mappings to LDAP/AD identities (NetApp vserver services name-service, Dell EMC server_ldap)
  • S3 sync credentials for cloud replication (Synology /etc/synology/s3.conf, QNAP Hybrid Backup Sync config)
  • Backup credentials embedded in NDMP tape streams (database connection strings, vCenter passwords)
  • Replication partner credentials (DRBD shared secret, rsync SSH keys, NetApp SnapMirror passphrases, Pure ActiveCluster)
  • API tokens for vendor cloud services (NetApp Cloud Insights, Dell EMC CloudIQ, Pure Storage Pure1)
  • Admin SSH keys stored in /etc/ssh/synouser_authorized_keys (Synology), ~/.ssh/authorized_keys2 (QNAP), /mroot/etc/ssh/ (NetApp)

Harvesting from a single appliance often unlocks the broader storage estate and the workloads it serves.

Storage Ransomware Patterns

NAS-targeting ransomware has been a top-tier threat since 2021. The playbook for each family is similar:

  1. Recon: Shodan/Censys scan for internet-facing admin consoles (QNAP 8080, Synology 5000/5001, TrueNAS 80/443)
  2. Initial access: Default credential spray (admin/admin), exploit known CVE (QNAP Photo Station CVE chain, Synology DSM CVE chain), or brute-force 2FA-bypass
  3. Lateral movement: enumerate SMB shares via domain credentials harvested from the appliance, pivot to Windows hosts
  4. Impact: encrypt SMB shares in place, drop ransom note, optionally exfiltrate for double extortion
  5. Persistence: leave a web shell on the appliance (QNAP QTS Apache, Synology DSM nginx) for re-entry

Object-storage ransomware follows a different pattern: an attacker with one over-privileged IAM role can mass-encrypt or mass-delete every object in every bucket the role can reach. The 2019 Capital One breach demonstrated the enumeration phase; subsequent in-the-wild incidents have demonstrated mass-encryption via s3:PutObject with ransomware-encrypted blobs.

See guides/storage-san-attack-playbook.md for a deep dive on each incident and defensive patterns.

Learning Resources

Frequently asked questions

What to verify before installation and use

What does the storage-san-attack source document cover?

Supplementary Files: - payloads.md — Attack payloads organized by attack surface: iSCSI, Fibre Channel, NFS, SMB, S3/object storage, vendor APIs (NetApp/Dell/Pure), NDMP, SMI-S/SNMP management, and ransomware patterns - test-cases.md — Structured test case templates (12 cases co…

How do I install storage-san-attack?

The source record exposes this install command: npx skills add https://github.com/brucesongs/kali-claw --skill "skills/storage-san-attack". Inspect the command and pinned source before running it.

Which Agent platforms does the source record declare?

The pinned source record declares support for: claude code, cursor.

Which permission-related actions were detected?

Static rules flagged write-files, send-data, network in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing