-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add elastic endpoint rule (#8)
- Loading branch information
1 parent
6d8f554
commit d2ee597
Showing
4 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package scanners | ||
|
||
import "github.com/FourCoreLabs/EDRHunt/pkg/resources" | ||
|
||
type ElasticAgentDetection struct{} | ||
|
||
func (w *ElasticAgentDetection) Name() string { | ||
return "Elastic Endpoint Security" | ||
} | ||
|
||
func (w *ElasticAgentDetection) Type() resources.EDRType { | ||
return resources.ElasticAgentEDR | ||
} | ||
|
||
var ElasticAgentHeuristic = []string{ | ||
"Elastic Endpoint Security", | ||
"Elastic Agent", | ||
"elastic-agent.exe", | ||
"elastic-endpoint.exe", | ||
"elastic-endpoint-driver", | ||
"ElasticEndpoint", | ||
} | ||
|
||
func (w *ElasticAgentDetection) Detect(data resources.SystemData) (resources.EDRType, bool) { | ||
_, ok := data.CountMatchesAll(ElasticAgentHeuristic) | ||
if !ok { | ||
return "", false | ||
} | ||
|
||
return resources.ElasticAgentEDR, true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,6 @@ var ( | |
&SymantecDetection{}, | ||
&SentinelOneDetection{}, | ||
&WinDefenderDetection{}, | ||
&ElasticAgentDetection{}, | ||
} | ||
) |