Skip to content

Commit

Permalink
Support ECS session category
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansr committed Jan 25, 2021
1 parent e5c1ed2 commit fd9ea90
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
17 changes: 15 additions & 2 deletions aucoalesce/normalizations.yaml
Expand Up @@ -46,6 +46,15 @@ macros:
- from: subject.secondary
to: user.effective

- &ecs-session
category: session
type: info
mappings:
- from: subject.primary
to: user
- from: subject.secondary
to: user.effective

- &ecs-host
category: host
type: info
Expand Down Expand Up @@ -1063,7 +1072,9 @@ normalizations:
- <<: *macro-user-session
record_types: USER_END
action: ended-session
ecs: *ecs-auth
ecs:
<<: *ecs-session
type: end
# AUDIT_USER_ERR - User acct state error
- <<: *macro-user-session
record_types: USER_ERR
Expand Down Expand Up @@ -1097,7 +1108,9 @@ normalizations:
record_types: USER_START
action: started-session
source_ip: [addr]
ecs: *ecs-auth
ecs:
<<: *ecs-session
type: start

# Host virtualization events

Expand Down
8 changes: 4 additions & 4 deletions aucoalesce/testdata/ubuntu-16.10-linux-4.8.0.json.golden
Expand Up @@ -478,10 +478,10 @@
"ecs": {
"event": {
"category": [
"authentication"
"session"
],
"type": [
"info"
"end"
]
},
"user": {
Expand Down Expand Up @@ -687,10 +687,10 @@
"ecs": {
"event": {
"category": [
"authentication"
"session"
],
"type": [
"info"
"start"
]
},
"user": {
Expand Down
8 changes: 4 additions & 4 deletions aucoalesce/testdata/ubuntu-17.04-linux-4.10.0.json.golden
Expand Up @@ -533,10 +533,10 @@
"ecs": {
"event": {
"category": [
"authentication"
"session"
],
"type": [
"info"
"end"
]
},
"user": {
Expand Down Expand Up @@ -733,10 +733,10 @@
"ecs": {
"event": {
"category": [
"authentication"
"session"
],
"type": [
"info"
"start"
]
},
"user": {
Expand Down
2 changes: 1 addition & 1 deletion aucoalesce/znormalize_data.go

Large diffs are not rendered by default.

0 comments on commit fd9ea90

Please sign in to comment.