1fb58e1b61
* Update to use new data source * Exclude FPs * Update logic * Exclude FPs * Update to match ER logic * Exclude FP * Update to match endpoint rule and reduce FPs * Update logic to reduce FPs * Update logic to reduce FPs * Exclude FPs * Update logic to remove FPs * Update logic to reduce FPs * Update logic and min stack version to reduce FPs * Exclude FP * Remove FPs * Update logic and min stack to reduce FPs * Exclude FPs * Update logic and min stack to exclude FPs * Update logic and min stack to exclude FPs * Update logic to be more efficient * Update logic * Update rules/macos/credential_access_promt_for_pwd_via_osascript.toml * Update rules/macos/defense_evasion_modify_environment_launchctl.toml * Update rules/macos/persistence_docker_shortcuts_plist_modification.toml * Update rules/macos/privilege_escalation_local_user_added_to_admin.toml * Update rules/macos/defense_evasion_attempt_del_quarantine_attrib.toml * Update persistence_folder_action_scripts_runtime.toml * Update rules/macos/credential_access_keychain_pwd_retrieval_security_cmd.toml Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com> * Update rules/macos/persistence_credential_access_authorization_plugin_creation.toml Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com> * Update rules/macos/execution_installer_package_spawned_network_event.toml * Update rules/macos/initial_access_suspicious_mac_ms_office_child_process.toml * Update rules/macos/credential_access_credentials_keychains.toml * Update rules/macos/credential_access_suspicious_web_browser_sensitive_file_access.toml * Update rules/macos/credential_access_suspicious_web_browser_sensitive_file_access.toml * Update rules/macos/persistence_loginwindow_plist_modification.toml * Update rules/macos/persistence_folder_action_scripts_runtime.toml * Fix * Fix * Fix * Update min stack comments * Update rules/macos/persistence_credential_access_authorization_plugin_creation.toml Co-authored-by: Samirbous <64742097+Samirbous@users.noreply.github.com> * Update rules/macos/credential_access_promt_for_pwd_via_osascript.toml * Update rules/macos/credential_access_suspicious_web_browser_sensitive_file_access.toml * Update rules/macos/credential_access_systemkey_dumping.toml * Update rules/macos/discovery_users_domain_built_in_commands.toml * Update rules/macos/initial_access_suspicious_mac_ms_office_child_process.toml * Update rules/macos/persistence_finder_sync_plugin_pluginkit.toml * Update rules/macos/privilege_escalation_local_user_added_to_admin.toml * Update rules/macos/privilege_escalation_applescript_with_admin_privs.toml * Update rules/macos/persistence_folder_action_scripts_runtime.toml * Remove field --------- Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com> Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com> Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com> Co-authored-by: terrancedejesus <terrance.dejesus@elastic.co> Co-authored-by: Samirbous <64742097+Samirbous@users.noreply.github.com> Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
80 lines
4.1 KiB
TOML
80 lines
4.1 KiB
TOML
[metadata]
|
|
creation_date = "2021/01/05"
|
|
integration = ["endpoint"]
|
|
maturity = "production"
|
|
min_stack_comments = "New fields added: process.Ext.effective_parent"
|
|
min_stack_version = "8.7.0"
|
|
updated_date = "2024/03/19"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
Identifies the use of the built-in networksetup command to configure webproxy settings. This may indicate an attempt to
|
|
hijack web browser traffic for credential access via traffic sniffing or redirection.
|
|
"""
|
|
false_positives = ["Legitimate WebProxy Settings Modification"]
|
|
from = "now-9m"
|
|
index = ["logs-endpoint.events.*"]
|
|
language = "kuery"
|
|
license = "Elastic License v2"
|
|
name = "WebProxy Settings Modification"
|
|
references = [
|
|
"https://unit42.paloaltonetworks.com/mac-malware-steals-cryptocurrency-exchanges-cookies/",
|
|
"https://objectivebythesea.com/v2/talks/OBTS_v2_Zohar.pdf",
|
|
]
|
|
risk_score = 47
|
|
rule_id = "10a500bb-a28f-418e-ba29-ca4c8d1a9f2f"
|
|
setup = """## Setup
|
|
|
|
This rule requires data coming in from Elastic Defend.
|
|
|
|
### Elastic Defend Integration Setup
|
|
Elastic Defend is integrated into the Elastic Agent using Fleet. Upon configuration, the integration allows the Elastic Agent to monitor events on your host and send data to the Elastic Security app.
|
|
|
|
#### Prerequisite Requirements:
|
|
- Fleet is required for Elastic Defend.
|
|
- To configure Fleet Server refer to the [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-server.html).
|
|
|
|
#### The following steps should be executed in order to add the Elastic Defend integration on a macOS System:
|
|
- Go to the Kibana home page and click "Add integrations".
|
|
- In the query bar, search for "Elastic Defend" and select the integration to see more details about it.
|
|
- Click "Add Elastic Defend".
|
|
- Configure the integration name and optionally add a description.
|
|
- Select the type of environment you want to protect, for MacOS it is recommended to select "Traditional Endpoints".
|
|
- Select a configuration preset. Each preset comes with different default settings for Elastic Agent, you can further customize these later by configuring the Elastic Defend integration policy. [Helper guide](https://www.elastic.co/guide/en/security/current/configure-endpoint-integration-policy.html).
|
|
- We suggest selecting "Complete EDR (Endpoint Detection and Response)" as a configuration setting, that provides "All events; all preventions"
|
|
- Enter a name for the agent policy in "New agent policy name". If other agent policies already exist, you can click the "Existing hosts" tab and select an existing policy instead.
|
|
For more details on Elastic Agent configuration settings, refer to the [helper guide](https://www.elastic.co/guide/en/fleet/current/agent-policy.html).
|
|
- Click "Save and Continue".
|
|
- To complete the integration, select "Add Elastic Agent to your hosts" and continue to the next section to install the Elastic Agent on your hosts.
|
|
For more details on Elastic Defend refer to the [helper guide](https://www.elastic.co/guide/en/security/current/install-endpoint.html).
|
|
"""
|
|
severity = "medium"
|
|
tags = ["Domain: Endpoint", "OS: macOS", "Use Case: Threat Detection", "Tactic: Credential Access", "Data Source: Elastic Defend"]
|
|
timestamp_override = "event.ingested"
|
|
type = "query"
|
|
|
|
query = '''
|
|
event.category:process and host.os.type:macos and event.type:start and
|
|
process.name : networksetup and process.args : (("-setwebproxy" or "-setsecurewebproxy" or "-setautoproxyurl") and not (Bluetooth or off)) and
|
|
not process.parent.executable : ("/Library/PrivilegedHelperTools/com.80pct.FreedomHelper" or
|
|
"/Applications/Fiddler Everywhere.app/Contents/Resources/app/out/WebServer/Fiddler.WebUi" or
|
|
"/usr/libexec/xpcproxy") and
|
|
not process.Ext.effective_parent.executable : ("/Applications/Proxyman.app/Contents/MacOS/Proxyman" or "/Applications/Incoggo.app/Contents/MacOS/Incoggo.app")
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1539"
|
|
name = "Steal Web Session Cookie"
|
|
reference = "https://attack.mitre.org/techniques/T1539/"
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0006"
|
|
name = "Credential Access"
|
|
reference = "https://attack.mitre.org/tactics/TA0006/"
|
|
|