DET0302 / GUIDANCE
Port-knock → rule/daemon change → first successful connect (T1205.001)
A remote source rapidly touches a short sequence of closed ports (SYN→RST/S0) on a Windows host. Within a short window the host changes firewall state (WFP rule added/modified or service starts listening) and then the same source completes the first successful handshake to the newly opened port. A source performs a short closed-port sequence; the host then modifies iptables/nftables/ufw rules or starts a daemon binding a new socket, followed by a successful connection from the same source. A source performs a closed-port sequence; the endpoint enables a PF/socketfilterfw rule or a background process binds a port; then a successful connection completes from the same source. Router/switch receives a knock pattern (same src touches device unicast, broadcast, and network-address on same or stepped ports) followed by ACL/line-vty/service enable and the first mgmt session success.
- Category
- Detection & response
- Version / scope
- ATT&CK Enterprise 20.1; object 1.0
- Affected / relevant technologies
- Enterprise systems
- Evidence
- Documentation: pinned-source excerpt checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
Assess applicability to the documented environment and obtain authorization before any testing. This publisher reference is not a tested configuration or execution guide.
Potential impact
The publisher describes a mitigation or detection scope; applicability does not establish local protection or an incident.
Versioned source scope
This record contains normalized, sometimes shortened source excerpts with editorial safety context. Markup and executable example blocks are omitted. Source-field verification does not establish device testing, a working detector or local applicability.
Publisher: MITRE. Release: ATT&CK Enterprise 20.1. Source checked: 2026-11-18.
Source object: x-mitre-detection-strategy--68b7c978-74e4-4f87-a953-2a4e752f56c2. Object created: 2025-10-21T15:10:28.402Z. Object modified: 2026-05-12T16:34:50.680Z.
Attribution and source terms (© The MITRE Corporation; reproduced with permission)Detection and investigation
- Analytic 0842: A remote source rapidly touches a short sequence of closed ports (SYN→RST/S0) on a Windows host. Within a short window the host changes firewall state (WFP rule added/modified or service starts listening) and then the same source completes the first successful handshake to the newly opened port.
- Analytic 0843: A source performs a short closed-port sequence; the host then modifies iptables/nftables/ufw rules or starts a daemon binding a new socket, followed by a successful connection from the same source.
- Analytic 0844: A source performs a closed-port sequence; the endpoint enables a PF/socketfilterfw rule or a background process binds a port; then a successful connection completes from the same source.
- Analytic 0845: Router/switch receives a knock pattern (same src touches device unicast, broadcast, and network-address on same or stepped ports) followed by ACL/line-vty/service enable and the first mgmt session success.
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- See publisher mitigation relationships where available; local control effectiveness requires independent assessment.
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Publisher analytics
Source excerpts and listed log sources describe the publisher's analytic references; they are not independently validated detection rules or evidence of operational coverage.
- AN0842 — Analytic 0842
A remote source rapidly touches a short sequence of closed ports (SYN→RST/S0) on a Windows host. Within a short window the host changes firewall state (WFP rule added/modified or service starts listening) and then the same source completes the first successful handshake to the newly opened port.
Publisher platforms: Windows.
Publisher log sources: WinEventLog:Sysmon / EventCode=1; WinEventLog:Sysmon / EventCode=3, 22; WinEventLog:Microsoft-Windows-Windows Firewall With Advanced Security/Firewall / EventCode=2004, 2005, 2006.
- AN0843 — Analytic 0843
A source performs a short closed-port sequence; the host then modifies iptables/nftables/ufw rules or starts a daemon binding a new socket, followed by a successful connection from the same source.
Publisher platforms: Linux.
Publisher log sources: auditd:SYSCALL / execve: Commands that alter firewall or start listeners: iptables|nft|ufw|firewall-cmd|pfctl|systemctl start sshd/telnet/dropbear; raw-socket/libpcap tools (tcpdump, tshark, nmap --raw).; auditd:SYSCALL / socket/bind: New bind() to a previously closed port shortly after the sequence.; NSM:Flow / Knock pattern: repeated REJ/S0 across ≥MinSequenceLen ports from same src_ip then SF success..
- AN0844 — Analytic 0844
A source performs a closed-port sequence; the endpoint enables a PF/socketfilterfw rule or a background process binds a port; then a successful connection completes from the same source.
Publisher platforms: macOS.
Publisher log sources: macos:unifiedlog / exec: Execution of pfctl, socketfilterfw, launchctl start ssh/telnet, libpcap consumers.; macos:unifiedlog / Firewall/PF anchor load or rule change events.; NSM:Flow / Sequence of REJ/S0 then SF success from same src_ip within TimeWindow..
- AN0845 — Analytic 0845
Router/switch receives a knock pattern (same src touches device unicast, broadcast, and network-address on same or stepped ports) followed by ACL/line-vty/service enable and the first mgmt session success.
Publisher platforms: Network Devices.
Publisher log sources: networkdevice:syslog / Config/ACL changes, line vty transport input changes, telnet/ssh/http(s) enable, image/feature module changes.; NSM:Flow / Series of denied/closed flows to distinct ports then success to mgmt port from same src_ip within TimeWindow..
Related technical context
No protocol-specific mapping is asserted for this entry.
Publisher-defined relationships
These directed relationships come from the pinned publisher data. They describe framework context, not guaranteed prevention, detection coverage or equivalence between entities.
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Source excerpts are attributed and adapted under the linked publisher license; editorial context is separate. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- https://attack.mitre.org/detectionstrategies/DET0302 — Publisher link; not separately HTTP-checked
- enterprise — source accessed 2026-11-18
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
