“Handling Destructive Malware” is redistributed from US Cert as a service of Mainstream Technologies.
Overview
Destructive malware presents a direct threat to an organization’s daily operations, directly impacting the availability of critical assets and data. Organizations should increase vigilance and evaluate their capabilities encompassing planning, preparation, detection, and response for such an event. This publication is focused on the threat of enterprise-scale distributed propagation methods for malware and provides recommended guidance and considerations for an organization to address as part of their network architecture, security baseline, continuous monitoring, and Incident Response practices.
While specific indicators and modules related to destructive malware may evolve over time, it is critical that an organization assess their capability to actively prepare for and respond to such an event.
Potential Distribution Vectors
Destructive malware has the capability to target a large scope of systems, and can potentially execute across multiple systems throughout a network. As a result, it is important for an organization to assess their environment for atypical channels for potential malware delivery and/or propagation throughout their systems. Systems to assess include:
- Enterprise Applications – particularly those which have the capability to directly interface with and impact multiple hosts and endpoints. Common examples include
- Patch Management Systems,
- Asset Management Systems,
- Remote Assistance software (typically utilized by the corporate Help Desk),
- Anti-Virus,
- Systems assigned to system and network administrative personnel,
- Centralized Backup Servers, and
- Centralized File Shares.
While not applicable to malware specifically, threat actors could compromise additional resources to impact the availability of critical data and applications. Common examples include:
- Centralized storage devices
- Potential Risk – direct access to partitions and data warehouses;
- Network devices
- Potential Risk – capability to inject false routes within the routing table, delete specific routes from the routing table, or remove/modify configuration attributes – which could isolate or degrade availability of critical network resources.
Best Practices and Planning Strategies
Common strategies can be followed to strengthen an organization’s resilience against destructive malware. Targeted assessment and enforcement of best practices should be employed for enterprise components susceptible to destructive malware.
Communication Flow
- Ensure proper network segmentation.
- Ensure that network-based access-control lists (ACLs) are configured to permit server-to-host and host-to-host connectivity via the minimum scope of ports and protocols – and that directional flows for connectivity are represented appropriately.
- Communication flow paths should be fully defined, documented, and authorized.
- Increase awareness of systems which can be utilized as a gateway to pivot (lateral movement) or directly connect to additional endpoints throughout the enterprise.
- Ensure that these systems are contained within restrictive VLANs, with additional segmentation and network access-controls.
- Ensure that centralized network and storage devices’ management interfaces are resident on restrictive VLANs.
- Layered access-control, and
- Device-level access-control enforcement – restricting access from only pre-defined VLANs and trusted IP ranges.
Access Control
- For Enterprise systems which can directly interface with multiple endpoints:
- Require two factor authentication for interactive logons.
- Ensure that authorized users are mapped to a specific subset of enterprise personnel.
- If possible, the “Everyone” , “Domain Users” or the “Authenticated Users” groups should not be permitted the capability to directly access or authenticate to these systems.
- Ensure that unique domain accounts are utilized and documented for each Enterprise application service.
- Context of permissions assigned to these accounts should be fully documented and configured based upon the concept of least privilege.
- Provides an enterprise with the capability to track and monitor specific actions correlating to an application’s assigned service account.
- If possible, do not grant a service account with local or interactive logon permissions.
- Service accounts should be explicitly denied permissions to access network shares and critical data locations.
- Accounts which are utilized to authenticate to centralized enterprise application servers or devices should not contain elevated permissions on downstream systems and resources throughout the enterprise.
- Continuously review centralized file share access-control lists and assigned permissions.
- Restrict Write/Modify/Full Control permissions when possible.
Monitoring
- Audit and review security logs for anomalous references to enterprise-level administrative (privileged) and service accounts.
- Failed logon attempts,
- File share access, and
- Interactive logons via a remote session.
- Review network flow data for signs of anomalous activity.
- Connections utilizing ports which do not correlate to the standard communication flow associated with an application,
- Activity correlating to port scanning or enumeration, and
- Repeated connections utilizing ports which can be utilized for command and control purposes.
- Ensure that network devices log and audit all configuration changes.
- Continually review network device configurations and rule sets, to ensure that communication flows are restricted to the authorized subset of rules.
File Distribution
- When deploying patches or AV signatures throughout an enterprise, stage the distributions to include a specific grouping of systems (staggered over a pre-defined time period).
- This action can minimize the overall impact in the event that an enterprise patch management or AV system is leveraged as a distribution vector for a malicious payload.
- Monitor and assess the integrity of patches and AV signatures which are distributed throughout the enterprise.
- Ensure updates are received only from trusted sources,
- Perform file and data integrity checks, and
- Monitor and audit – as related to the data that is distributed from an enterprise application.
System and Application Hardening
- Ensure that the underlying Operating System (OS) and dependencies (ex: IIS, Apache, SQL) supporting an application are configured and hardened based upon industry-standard best practice recommendations. Implement application-level security controls based upon best practice guidance provided by the vendor. Common recommendations include:
- Utilize role-based access control,
- Prevent end-user capabilities to bypass application-level security controls,
- Example – disabling Antivirus on a local workstation
- Disable un-necessary or un-utilized features or packages, and
- Implement robust application logging and auditing
- Thoroughly test and implement vendor patches in a timely manner.
Recovery and Reconstitution Planning
A Business Impact Analysis (BIA) is a key component of contingency planning and preparation. The overall output of a BIA will provide an organization with two key components (as related to critical mission/business operations):
- Characterization and classification of system components, and
- Interdependencies.
Based upon the identification of an organization’s mission critical assets (and their associated interdependencies), in the event that an organization is impacted by a potentially destructive condition, recovery and reconstitution efforts should be considered.
To plan for this scenario, an organization should address the availability and accessibility for the following resources (and should include the scope of these items within Incident Response exercises and scenarios):
- Comprehensive inventory of all mission critical systems and applications:
- Versioning information,
- System / application dependencies,
- System partitioning/ storage configuration and connectivity, and
- Asset Owners / Points of Contact.
- Comprehensive inventory of all mission critical systems and applications:
- Versioning information,
- System / application dependencies,
- System partitioning/ storage configuration and connectivity, and
- Asset Owners / Points of Contact.
- Contact information for all essential personnel within the organization,
- Secure communications channel for recovery teams,
- Contact information for external organizational-dependant resources:
- Communication Providers,
- Vendors (hardware / software), and
- Outreach partners / External Stakeholders
- Service Contract Numbers – for engaging vendor support,
- Organizational Procurement Points of Contact,
- ISO / image files for baseline restoration of critical systems and applications:
- Operating System installation media,
- Service Packs / Patches,
- Firmware, and
- Application software installation packages.
- Licensing/activation keys for Operating Systems (OS) and dependant applications,
- Enterprise Network Topology and Architecture diagrams,
- System and application documentation,
- Hard copies of operational checklists and playbooks,
- System and application configuration backup files,
- Data backup files (full/differential),
- System and application security baseline and hardening checklists/guidelines, and
- System and application integrity test and acceptance checklists.
Containment
In the event that an organization observes a large-scale outbreak that may be reflective of a destructive malware attack, in accordance with Incident Response best practices, the immediate focus should be to contain the outbreak, and reduce the scope of additional systems which could be further impacted.
Strategies for containment include:
- Determining a vector common to all systems experiencing anomalous behavior (or having been rendered unavailable) – from which a malicious payload could have been delivered:
- Centralized Enterprise Application,
- Centralized File Share (for which the identified systems were mapped or had access),
- Privileged User Account common to the identified systems,
- Network Segment or Boundary, and
- Common DNS Server for name resolution.
- Based upon the determination of a likely distribution vector, additional mitigation controls can be enforced to further minimize impact:
- Implement network-based access-control lists to deny the identified application(s) the capability to directly communicate with additional systems,
- Provides an immediate capability to isolate and sandbox specific systems or resources
- Implement null network routes for specific IP addresses (or IP ranges) – from which the payload may be distributed,
- An organization’s internal DNS can also be leveraged for this task – as a null pointer record could be added within a DNS zone for an identified server or application
- Readily disable access for suspected user or service account(s), and
- For suspect file shares (which may be hosting the infection vector), remove access or disable the share path from being accessed by additional systems.
- Implement network-based access-control lists to deny the identified application(s) the capability to directly communicate with additional systems,
As related to incident response and incident handling, organizations are reminded to:
- Report the incident to US-CERT and/or ICS-CERT for tracking and correlation purposes, and
- Preserve forensic data for use in internal investigation of the incident or for possible law enforcement purposes.
Author