US-CERT- TA18-276A: Using Rigorous Credential Control to Mitigate Trusted Network Exploitation

Started by Netwörkheäd, September 20, 2019, 06:14:58 AM

Previous topic - Next topic

Netwörkheäd

TA18-276A: Using Rigorous Credential Control to Mitigate Trusted Network Exploitation

[html]Original release date: October 3, 2018<br/><h3>Systems Affected</h3><p>Network Systems</p><h3>Overview</h3><p>This technical alert addresses the exploitation of trusted network relationships and the subsequent illicit use of legitimate credentials by Advanced Persistent Threat (APT) actors. It identifies APT actors' tactics, techniques, and procedures (TTPs) and describes the best practices that could be employed to mitigate each of them. The mitigations for each TTP are arranged according to the <a href="https://www.nist.gov/cyberframework/framework">National Institute of Standards and Technology (NIST) Cybersecurity Framework</a> core functions of Protect, Detect, Respond, and Recover.</p><h3>Description</h3><p>APT actors are using multiple mechanisms to acquire legitimate user credentials to exploit trusted network relationships in order to expand unauthorized access, maintain persistence, and exfiltrate data from targeted organizations. Suggested best practices for administrators to mitigate this threat include auditing credentials, remote-access logs, and controlling privileged access and remote access.</p><h3>Impact</h3><p>APT actors are conducting malicious activity against organizations that have trusted network relationships with potential targets, such as a parent company, a connected partner, or a contracted managed service provider (MSP). APT actors can use legitimate credentials to expand unauthorized access, maintain persistence, exfiltrate data, and conduct other operations, while appearing to be authorized users. Leveraging legitimate credentials to exploit trusted network relationships also allows APT actors to access other devices and other trusted networks, which affords intrusions a high level of persistence and stealth.</p><h3>Solution</h3><p>Recommended best practices for mitigating this threat include rigorous credential and privileged-access management, as well as remote-access control, and audits of legitimate remote-access logs. While these measures aim to prevent the initial attack vectors and the spread of malicious activity, there is no single proven threat response.</p><p>Using a defense-in-depth strategy is likely to increase the odds of successfully disrupting adversarial objectives long enough to allow network defenders to detect and respond before the successful completion of a threat actor's objectives.</p><p>Any organization that uses an MSP to provide services should monitor the MSP's interactions within their organization's enterprise networks, such as account use, privileges, and access to confidential or proprietary information. Organizations should also ensure that they have the ability to review their security and monitor their information hosted on MSP networks.</p><h3>APT TTPs and Corresponding Mitigations</h3><p>The following table displays the TTPs employed by APT actors and pairs them with mitigations that network defenders can implement.</p><h4 style="text-align: center;">Table 1: APT TTPs and Mitigations</h4><table align="center" border="1" cellpadding="1" cellspacing="1" class="general-table" style="height:339px;width:800px;"><thead><tr><th scope="col"><strong>APT TTPs</strong></th><th scope="col"><strong>Mitigations</strong></th></tr></thead><thead><tr><th colspan="2" scope="col" style="text-align: left;"><strong>Preparation</strong></th></tr></thead><tbody><tr><td scope="col" style="text-align: left; vertical-align: top;"><ul><li>Allocate operational infrastructure, such as Internet Protocol addresses (IPs).</li><li>Gather target credentials to use for legitimate access.</li></ul></td><td scope="col" style="text-align: left; vertical-align: top;"><p><strong>Protect:</strong></p><ul><li>Educate users to never click unsolicited links or open unsolicited attachments in emails.</li><li>Implement an awareness and training program.</li></ul><p><strong>Detect:</strong></p><ul><li>Leverage multi-sourced threat-reputation services for files, Domain Name System (DNS), Uniform Resource Locators (URLs), IPs, and email addresses.</li></ul></td></tr></tbody><thead><tr><th colspan="2" scope="col" style="text-align: left;"><strong>Engagement</strong></th></tr></thead><tbody><tr><td scope="col" style="text-align: left; vertical-align: top;"><ul><li>Use legitimate remote access, such as virtual private networks (VPNs) and Remote Desktop Protocol (RDP).</li><li>Leverage a trusted relationship between networks.</li></ul></td><td scope="col" style="text-align: left; vertical-align: top;"><p><strong>Protect:</strong></p><ul><li>Enable strong spam filters to prevent phishing emails from reaching end users.</li><li>Authenticate inbound email using Sender Policy Framework; Domain-Based Message Authentication, Reporting and Conformance; and DomainKeys Identified Mail to prevent email spoofing.</li><li>Prevent external access via RDP sessions and require VPN access.</li><li>Enforce multi-factor authentication and account-lockout policies to defend against brute force attacks.</li></ul><p><strong>Detect:</strong></p><ul><li>Leverage multi-sourced threat-reputation services for files, DNS, URLs, IPs, and email addresses.</li><li>Scan all incoming and outgoing emails to detect threats and filter out executables.</li><li>Audit all remote authentications from trusted networks or service providers for anomalous activity.</li></ul><p><strong>Respond and Recover:</strong></p><ul><li>Reset credentials, including system accounts.</li><li>Transition to multifactor authentication and reduce use of password-based systems, which are susceptible to credential theft, forgery, and reuse across multiple systems.</li></ul></td></tr></tbody><thead><tr><th colspan="2" scope="col" style="text-align: left;"><strong>Presence</strong></th></tr></thead><tbody><tr><td scope="col" style="text-align: left; vertical-align: top;"><p><strong>Execution and Internal Reconnaissance:</strong></p><ul><li>Write to disk and execute malware and tools on hosts.</li><li>Use interpreted scripts and run commands in shell to enumerate accounts, local network, operating system, software, and processes for internal reconnaissance.</li><li>Map accessible networks and scan connected targets.</li></ul><p><strong>Lateral Movement:</strong></p><ul><li>Use remote services and log on remotely.</li><li>Use legitimate credentials to move laterally onto hosts, domain controllers, and servers.</li><li>Write to remote file shares, such as Windows administrative shares.</li></ul><p><strong>Credential Access:</strong></p><ul><li>Locate credentials, dump credentials, and crack passwords.</li></ul></td><td scope="col" style="text-align: left; vertical-align: top;"><p><strong>Protect:</strong></p><ul><li>Deploy an anti-malware solution, which also aims to prevent spyware and adware.</li><li>Prevent the execution of unauthorized software, such as Mimikatz, by using application whitelisting.</li><li>Deploy PowerShell mitigations and, in the more current versions of PowerShell, enable monitoring and security features.</li><li>Prevent unauthorized external access via RDP sessions. Restrict workstations from communicating directly with other workstations.</li><li>Separate administrative privileges between internal administrator accounts and accounts used by trusted service providers.</li><li>Enable detailed session-auditing and session-logging.</li></ul><p><strong>Detect:</strong></p><ul><li>Audit all remote authentications from trusted networks or service providers.</li><li>Detect mismatches by correlating credentials used within internal networks with those employed on external-facing systems.</li><li>Log use of system administrator commands, such as net, ipconfig, and ping.</li><li>Audit logs for suspicious behavior.</li><li>Use whitelist or baseline comparison to monitor Windows event logs and network traffic to detect when a user maps a privileged administrative share on a Windows system.</li><li>Leverage multi-sourced threat-reputation services for files, DNS, URLs, IPs, and email addresses.</li></ul><p><strong>Respond and Recover:</strong></p><ul><li>Reset credentials.</li><li>Monitor accounts associated with a compromise for abnormal behaviors, including unusual connections to nonstandard resources or attempts to elevate privileges, enumerate, or execute unexpected programs or applications.</li></ul></td></tr></tbody><thead><tr><th colspan="2" scope="col" style="text-align: left;"><strong>Effect</strong></th></tr></thead><tbody><tr><td scope="col" style="text-align: left; vertical-align: top;"><ul><li>Maintain access to trusted networks while gathering data from victim networks.</li><li>Compress and position data for future exfiltration in archives or in unconventional locations to avoid detection.</li><li>Send over command and control channel using data-transfer tools (e.g., PuTTY secure copy client [PSCP], Robocopy).</li></ul></td><td scope="col" style="text-align: left; vertical-align: top;"><p><strong>Protect:</strong></p><ul><li>Prevent the execution of unauthorized software, such as PSCP and Robocopy.</li></ul><p><strong>Detect:</strong></p><ul><li>Monitor for use of archive and compression tools.</li><li>Monitor egress traffic for anomalous behaviors, such as irregular outbound connections, malformed or abnormally large packets, or bursts of data to detect beaconing and exfiltration.</li></ul></td></tr></tbody></table><h3>
Let's not argue. Let's network!