MSDefenderForEndpoint#
README
MSDefenderForEndpoint Analyzer#
Queries Microsoft Defender for Endpoint (MDE) to enrich observables with endpoint telemetry: device risk/exposure/health, and file hash prevalence and related alerts within your organization.
Two flavors share the same Azure AD app registration:
- DeviceLookup:
iporfqdn→ device risk score, exposure level, health status, OS platform and related alerts. - HashReputation:
hash(SHA1 or SHA256 only) → organization prevalence and related alerts.
Requirements#
- In Azure AD, register an application (App registrations).
- Grant it Application permissions on the
WindowsDefenderATPAPI: Machine.Read.AllAlert.Read.AllFile.Read.All- Grant admin consent for these permissions.
- Create a client secret for the application.
- Note the tenant ID, client (application) ID, and client secret.
Configuration#
| Parameter | Description | Required |
|---|---|---|
tenant_id |
Azure AD tenant ID | Yes |
client_id |
Azure AD application (client) ID | Yes |
client_secret |
Azure AD application client secret | Yes |
Supported Observable Types#
- DeviceLookup:
ip,fqdn - HashReputation:
hash(only SHA1/SHA256 — MD5 is not supported by the MDE files API)
Output#
DeviceLookup#
MDE:RiskScore="None|Low|Medium|High"— mapped toinfo/safe/suspicious/maliciousMDE:Alerts="<count>"(suspicious) when the device has related alertsMDE:Device="NotFound"(info) when no matching device is found
HashReputation#
MDE:Alerts="<count>"—maliciousif any related alert has High severity,suspiciousfor Medium/Low/Informational alerts,safeif the file was seen but has no alerts,infootherwiseMDE:OrgPrevalence="<count>"— how many devices in your organization have seen this fileMDE:File="NotSeen"(info) when the hash is unknown to Microsoft Defender for Endpoint
MSDefenderForEndpoint_HashReputation#
Author: Elina Galvao, StrangeBee
License: AGPL-V3
Version: 1.0
Supported observables types:
- hash
Registration required: N/A
Subscription required: N/A
Free subscription: N/A
Third party service: N/A
Description#
Check a file hash (SHA1 or SHA256) against Microsoft Defender for Endpoint: organization prevalence and related alerts.
Configuration#
| tenant_id | Azure AD tenant ID |
|---|---|
| Default value if not configured | N/A |
| Type of the configuration item | string |
| The configuration item can contain multiple values | False |
| Is required | True |
| client_id | Azure AD application (client) ID granted File.Read.All and Alert.Read.All permissions on the WindowsDefenderATP API |
|---|---|
| Default value if not configured | N/A |
| Type of the configuration item | string |
| The configuration item can contain multiple values | False |
| Is required | True |
| client_secret | Azure AD application client secret |
|---|---|
| Default value if not configured | N/A |
| Type of the configuration item | string |
| The configuration item can contain multiple values | False |
| Is required | True |
Templates samples for TheHive#
No template samples to display.
MSDefenderForEndpoint_DeviceLookup#
Author: Elina Galvao, StrangeBee
License: AGPL-V3
Version: 1.0
Supported observables types:
- ip
- fqdn
Registration required: N/A
Subscription required: N/A
Free subscription: N/A
Third party service: N/A
Description#
Look up a device (by IP or hostname/FQDN) in Microsoft Defender for Endpoint: risk score, exposure level, health status and related alerts.
Configuration#
| tenant_id | Azure AD tenant ID |
|---|---|
| Default value if not configured | N/A |
| Type of the configuration item | string |
| The configuration item can contain multiple values | False |
| Is required | True |
| client_id | Azure AD application (client) ID granted Machine.Read.All and Alert.Read.All permissions on the WindowsDefenderATP API |
|---|---|
| Default value if not configured | N/A |
| Type of the configuration item | string |
| The configuration item can contain multiple values | False |
| Is required | True |
| client_secret | Azure AD application client secret |
|---|---|
| Default value if not configured | N/A |
| Type of the configuration item | string |
| The configuration item can contain multiple values | False |
| Is required | True |
Templates samples for TheHive#
No template samples to display.