LiveActive security incident?Get immediate response
MITRE ATT&CK® Malware

S1224: CASTLETAP

MITRE ATT&CK S1224: CASTLETAP Malware details for Network Devices, with detection guidance, relationships and mapped CVEs.

EnterpriseS1224MalwareObject v1.0Modified
Glexia's Take · Automated analysis

Security context for executives and security teams

Automation confidenceMedium

CASTLETAP matters because it represents a backdoor on perimeter network devices, specifically reported by ATT&CK as an ICMP port-knocking backdoor installed on compromised FortiGate firewalls. For leaders, the key issue is not just malware on a firewall; it is loss of trust in an edge device that routes, filters, and may observe sensitive traffic while often having weaker endpoint-style monitoring than servers or workstations.

Executive priority

Prioritize this as an edge-device resilience and incident-readiness concern. Security leaders should ask whether firewalls and other network devices are inventoried, patched, centrally logged, configuration-monitored, and included in incident response evidence collection. Because the related behavior includes network sniffing, local data access, shell execution, tool transfer, socket filters, and encrypted command-and-control, a suspected case should be treated as a potential compromise of both device integrity and traffic confidentiality.

Technical view

SOC and IR teams should validate visibility on Network Devices, especially FortiGate firewalls where applicable. ATT&CK provides no official detection text for CASTLETAP, so coverage should be built from the relationship context: unexpected ICMP patterns consistent with activation traffic, unusual socket/filter behavior, shell execution on the device, local file or configuration access, inbound tool transfer, encrypted command-and-control, and evidence of packet capture or network sniffing. Detection should account for the fact that edge devices may not provide full process telemetry, so network telemetry, configuration baselines, device logs, and forensic collection procedures become decisive.

Likely telemetry

  • Network device system, security, and administrative logs
  • Firewall configuration snapshots and change history
  • Perimeter ICMP traffic metadata and packet captures where available
  • NetFlow or equivalent network flow records for unusual external communications
  • Device CLI or shell command history where retained

Detection direction

  • Confirm whether network-device logs are centralized, time-synchronized, and retained long enough to support investigation.
  • Baseline normal ICMP use at the perimeter before alerting on ICMP anomalies to reduce false positives from diagnostics and monitoring tools.
  • Review firewall configuration and filesystem changes for unexpected files, scripts, packet capture utilities, or persistence-related artifacts.
  • Correlate device-side events with network flows, especially unusual encrypted outbound communications from the device itself.
  • Hunt for signs aligned to the related techniques: Network Sniffing, Unix Shell, Ingress Tool Transfer, Deobfuscate/Decode Files or Information, Socket Filters, and encrypted command-and-control.

Mitigation priorities

  • Maintain a current inventory of exposed network devices and their software/firmware state.
  • Prioritize vulnerability and patch management for perimeter firewalls and other edge devices, especially when external reporting links malware activity to zero-day exploitation.
  • Restrict and monitor administrative access to firewall management interfaces.
  • Use configuration baselines, approved change workflows, and periodic integrity checks for network devices.
  • Define IR playbooks for firewall compromise, including evidence preservation, configuration export, traffic review, credential rotation, and trusted rebuild or replacement when required.
Additional notes and limits

The strongest decision value is the edge-device blind spot: CASTLETAP is described as a backdoor on compromised FortiGate firewalls, and its related techniques point to stealthy activation, command execution, data access, traffic observation, tool staging, and encrypted communications. This should drive validation of firewall telemetry, incident response procedures, and vulnerability management rather than a narrow signature-only approach.

ATT&CK provides no official detection guidance for this software object, no aliases, and no explicit malware tactics on the object itself. The assessment is based only on the official description, the Mandiant external reference, and ATT&CK relationships to UNC3886 and related techniques. Local device models, logging configuration, firmware state, and network architecture are required to determine actual exposure or detection coverage.

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Official MITRE ATT&CK definition

CASTLETAP

No official description is available in the imported ATT&CK source object.

View the same entry on attack.mitre.org (MITRE-hosted reference; in-page links above use the Glexia ATT&CK library.)

Glexia analysis

How security teams should use this page

Treat this object as behavior context, not an attribution claim. Validate the related groups, software, data sources, and mitigations against official ATT&CK relationships and your own telemetry before making control-coverage decisions.

ATT&CK relationship table

Techniques used

This mirrors the MITRE pattern of making group, software, campaign, and technique relationships scannable. Relationship notes come from mirrored ATT&CK relationship text when available.

8 rows
DomainIDNameRelationship / procedure
EnterpriseT1059.004Unix ShellSub-techniqueThis object uses Unix Shell.
EnterpriseT1205.002Socket FiltersSub-techniqueThis object uses Socket Filters.
EnterpriseT1105Ingress Tool TransferThis object uses Ingress Tool Transfer.
EnterpriseT1140Deobfuscate/Decode Files or InformationThis object uses Deobfuscate/Decode Files or Information.
EnterpriseT1573.002Asymmetric CryptographySub-techniqueThis object uses Asymmetric Cryptography.
EnterpriseT1040Network SniffingThis object uses Network Sniffing.
EnterpriseT1573.001Symmetric CryptographySub-techniqueThis object uses Symmetric Cryptography.
EnterpriseT1005Data from Local SystemThis object uses Data from Local System.
Associated objects

Groups, software, and campaigns

GroupEnterprise

G1048: UNC3886

UNC3886 is a China-nexus cyberespionage group that has been active since at least 2022, targeting defense, technology, and telecommunication organizations located in the United States and the Asia-Pacific-Japan (APJ) regions. UNC3886 has displayed a deep understanding of edge devices and virtualization technologies through the exploitation of zero-day vulnerabilities and the use of novel malware families and utilities.[1][2]

Relationship explorer

All related ATT&CK context

Change history

Object version and sync metadata

The fields below describe the current mirrored snapshot. When Glexia retains multiple ATT&CK source imports, you can open the table to compare the same object across releases (hashes and MITRE timestamps). For MITRE’s own release notes and roadmap, see ATT&CK resources — Updates.

ATT&CK release
19.1
Object version
1.0
Created
Modified
Raw hash
59d9010af6f21e19...
Imported snapshots across ATT&CK releases(1)
ReleaseBundle importedObject versionModifiedStatusRaw hash
19.11.0Current bundle59d9010af6f2…
Raw source

Mirrored ATT&CK source object

The raw object is retained through the mirrored ATT&CK source bundle and object hash. The raw endpoint returns the exact object from the mirrored bundle when available.

Source references

External references and citations

MITRE external references are preserved separately from Glexia analysis so citations remain traceable to their original source records.

  1. [1]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  2. [2]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  3. [3]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  4. [4]
    mitre-attackS1224
    Open source URL
  5. [5]
    mitre-attackS1224
    Open source URL
  6. [6]
    mitre-attackS1224
    Open source URL
  7. [7]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  8. [8]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  9. [9]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  10. [10]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  11. [11]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  12. [12]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  13. [13]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  14. [14]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  15. [15]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  16. [16]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  17. [17]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  18. [18]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  19. [19]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  20. [20]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  21. [21]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  22. [22]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
  23. [23]
    Mandiant Fortinet Zero Day

    Marvi, A. et al.. (2023, March 16). Fortinet Zero-Day and Custom Malware Used by Suspected Chinese Actor in Espionage Operation. Retrieved March 22, 2023.

    Open source URL
Source and licensing

Source: MITRE ATT&CK®. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. MITRE ATT&CK and ATT&CK are registered trademarks of The MITRE Corporation. Glexia is not affiliated with or endorsed by MITRE.