panther-labs / panther-analysis

Built-in Panther detection rules and policies
https://panther.com/
Apache License 2.0
339 stars 173 forks source link

added get_actor_user method to data model #1343

Closed biancafu-panther closed 2 months ago

biancafu-panther commented 2 months ago

Background

A customer was receiving alerts from the out-of-the-box (OOTB) detection GCP IAM serviceAccounts getAccessToken Privilege Escalation. The alert message included [GCP]: [<ACTOR_NOT_FOUND>] performed [GenerateAccessToken] on project, which indicated that Panther's data model did not recognize the actor correctly.

Upon investigation, we found that the issue arose because the GCP Audit schema in Panther was only mapping the principalEmail field as the actor_user, while for third-party identity callers, GCP populates the principalSubject field instead of principalEmail. This behavior is confirmed by the GCP documentation.

Changes

Testing

github-actions[bot] commented 2 months ago

:scream: looks like some things could be wrong with the packs

[INFO][root]: ignoring file dependabot.yml