Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/crowdstrike/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "4.4.0"
changes:
- description: Map CommandHistory events to ECS process fields.
type: enhancement
link: https://github.com/elastic/integrations/pull/20285
- version: "4.3.1"
changes:
- description: Use an inclusive lower bound (>=) on the updated_timestamp cursor filter in the vulnerability and alert data streams to prevent records sharing a boundary timestamp from being permanently skipped at page or error boundaries.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"event_simpleName":"CommandHistory","CommandHistory":"sc stop CSFalconService¶Stop-Service -Name CSFalconService -Force","FirstCommand":"0","CommandCountMax":"2","CommandCount":"2","CommandSequence":"1","LastDisplayed":"0","LastAdded":"0","TargetProcessId":"7292754410393","AuthenticationId":"2048391741","ConfigStateHash":"886310903","EffectiveTransmissionClass":"3","Entitlements":"15","EventOrigin":"1","LogonType":"10","UserName":"jdoe","aip":"81.2.69.144","aid":"b5c2f3e1d4a789102345678abcdef01","timestamp":"1752051389000","cid":"a1b2c3d4e5f67890abcdef1234567890","id":"a1b2c3d4e5f67890abcdef1234567890a1b2","event_platform":"Win","name":"CommandHistoryV5","ConfigBuild":"1007.3.0021003.10"}
{"event_simpleName":"CommandHistory","CommandHistory":"sc stop CSFalconService","FirstCommand":"0","CommandCountMax":"1","CommandCount":"1","CommandSequence":"1","LastDisplayed":"0","LastAdded":"0","TargetProcessId":"7292754410394","AuthenticationId":"2048391742","ConfigStateHash":"886310903","EffectiveTransmissionClass":"3","Entitlements":"15","EventOrigin":"1","LogonType":"2","UserName":"jdoe","aip":"81.2.69.144","aid":"b5c2f3e1d4a789102345678abcdef01","timestamp":"1752051390000","cid":"a1b2c3d4e5f67890abcdef1234567890","id":"b2c3d4e5f67890abcdef1234567890b2c3","event_platform":"Win","name":"CommandHistoryV5","ConfigBuild":"1007.3.0021003.10"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
{
"expected": [
{
"@timestamp": "2025-07-09T08:56:29.000Z",
"crowdstrike": {
"AuthenticationId": "2048391741",
"CommandCount": 2,
"CommandCountMax": 2,
"CommandHistory": [
"sc stop CSFalconService",
"Stop-Service -Name CSFalconService -Force"
],
"CommandSequence": "1",
"ConfigStateHash": "886310903",
"EffectiveTransmissionClass": "3",
"Entitlements": "15",
"EventOrigin": "1",
"FirstCommand": "0",
"LastAdded": "0",
"LastDisplayed": "0",
"LogonType": "10",
"cid": "a1b2c3d4e5f67890abcdef1234567890",
"event_simpleName": "CommandHistory",
"id": "a1b2c3d4e5f67890abcdef1234567890a1b2",
"name": "CommandHistoryV5"
},
"device": {
"id": "b5c2f3e1d4a789102345678abcdef01"
},
"event": {
"action": "CommandHistory",
"category": [
"process"
],
"created": "2025-07-09T08:56:29.000Z",
"id": "a1b2c3d4e5f67890abcdef1234567890a1b2|b5c2f3e1d4a789102345678abcdef01|a1b2c3d4e5f67890abcdef1234567890",
"kind": "event",
"original": "{\"event_simpleName\":\"CommandHistory\",\"CommandHistory\":\"sc stop CSFalconService¶Stop-Service -Name CSFalconService -Force\",\"FirstCommand\":\"0\",\"CommandCountMax\":\"2\",\"CommandCount\":\"2\",\"CommandSequence\":\"1\",\"LastDisplayed\":\"0\",\"LastAdded\":\"0\",\"TargetProcessId\":\"7292754410393\",\"AuthenticationId\":\"2048391741\",\"ConfigStateHash\":\"886310903\",\"EffectiveTransmissionClass\":\"3\",\"Entitlements\":\"15\",\"EventOrigin\":\"1\",\"LogonType\":\"10\",\"UserName\":\"jdoe\",\"aip\":\"81.2.69.144\",\"aid\":\"b5c2f3e1d4a789102345678abcdef01\",\"timestamp\":\"1752051389000\",\"cid\":\"a1b2c3d4e5f67890abcdef1234567890\",\"id\":\"a1b2c3d4e5f67890abcdef1234567890a1b2\",\"event_platform\":\"Win\",\"name\":\"CommandHistoryV5\",\"ConfigBuild\":\"1007.3.0021003.10\"}",
"outcome": "success",
"type": [
"end",
"info"
]
},
"host": {
"id": "b5c2f3e1d4a789102345678abcdef01",
"os": {
"type": "windows"
}
},
"observer": {
"address": [
"81.2.69.144"
],
"geo": {
"city_name": "London",
"continent_name": "Europe",
"country_iso_code": "GB",
"country_name": "United Kingdom",
"location": {
"lat": 51.5142,
"lon": -0.0931
},
"region_iso_code": "GB-ENG",
"region_name": "England"
},
"ip": [
"81.2.69.144"
],
"serial_number": "b5c2f3e1d4a789102345678abcdef01",
"version": "1007.3.0021003.10"
},
"process": {
"command_line": "sc stop CSFalconService¶Stop-Service -Name CSFalconService -Force",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right? I've looked for the any documentation for the semantics of this character and have found none. I think we need some explanation of how we are interpreting it in the commit message.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added an explanation in the commit message. The use of this character has been observed in several real log samples.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So how does that work with process.command_line? The string that its holding is not the "Full command line that started the process, including the absolute path to the executable, and all arguments."

"entity_id": "7292754410393",
"interactive": true,
"user": {
"name": "jdoe"
}
},
"related": {
"hash": [
"886310903"
],
"ip": [
"81.2.69.144"
],
"user": [
"jdoe"
]
},
"tags": [
"preserve_original_event"
],
"user": {
"name": "jdoe"
}
},
{
"@timestamp": "2025-07-09T08:56:30.000Z",
"crowdstrike": {
"AuthenticationId": "2048391742",
"CommandCount": 1,
"CommandCountMax": 1,
"CommandHistory": [
"sc stop CSFalconService"
],
"CommandSequence": "1",
"ConfigStateHash": "886310903",
"EffectiveTransmissionClass": "3",
"Entitlements": "15",
"EventOrigin": "1",
"FirstCommand": "0",
"LastAdded": "0",
"LastDisplayed": "0",
"LogonType": "2",
"cid": "a1b2c3d4e5f67890abcdef1234567890",
"event_simpleName": "CommandHistory",
"id": "b2c3d4e5f67890abcdef1234567890b2c3",
"name": "CommandHistoryV5"
},
"device": {
"id": "b5c2f3e1d4a789102345678abcdef01"
},
"event": {
"action": "CommandHistory",
"category": [
"process"
],
"created": "2025-07-09T08:56:30.000Z",
"id": "b2c3d4e5f67890abcdef1234567890b2c3|b5c2f3e1d4a789102345678abcdef01|a1b2c3d4e5f67890abcdef1234567890",
"kind": "event",
"original": "{\"event_simpleName\":\"CommandHistory\",\"CommandHistory\":\"sc stop CSFalconService\",\"FirstCommand\":\"0\",\"CommandCountMax\":\"1\",\"CommandCount\":\"1\",\"CommandSequence\":\"1\",\"LastDisplayed\":\"0\",\"LastAdded\":\"0\",\"TargetProcessId\":\"7292754410394\",\"AuthenticationId\":\"2048391742\",\"ConfigStateHash\":\"886310903\",\"EffectiveTransmissionClass\":\"3\",\"Entitlements\":\"15\",\"EventOrigin\":\"1\",\"LogonType\":\"2\",\"UserName\":\"jdoe\",\"aip\":\"81.2.69.144\",\"aid\":\"b5c2f3e1d4a789102345678abcdef01\",\"timestamp\":\"1752051390000\",\"cid\":\"a1b2c3d4e5f67890abcdef1234567890\",\"id\":\"b2c3d4e5f67890abcdef1234567890b2c3\",\"event_platform\":\"Win\",\"name\":\"CommandHistoryV5\",\"ConfigBuild\":\"1007.3.0021003.10\"}",
"outcome": "success",
"type": [
"end",
"info"
]
},
"host": {
"id": "b5c2f3e1d4a789102345678abcdef01",
"os": {
"type": "windows"
}
},
"observer": {
"address": [
"81.2.69.144"
],
"geo": {
"city_name": "London",
"continent_name": "Europe",
"country_iso_code": "GB",
"country_name": "United Kingdom",
"location": {
"lat": 51.5142,
"lon": -0.0931
},
"region_iso_code": "GB-ENG",
"region_name": "England"
},
"ip": [
"81.2.69.144"
],
"serial_number": "b5c2f3e1d4a789102345678abcdef01",
"version": "1007.3.0021003.10"
},
"process": {
"command_line": "sc stop CSFalconService",
"entity_id": "7292754410394",
"interactive": true,
"user": {
"name": "jdoe"
}
},
"related": {
"hash": [
"886310903"
],
"ip": [
"81.2.69.144"
],
"user": [
"jdoe"
]
},
"tags": [
"preserve_original_event"
],
"user": {
"name": "jdoe"
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8066,6 +8066,7 @@
},
"process": {
"entity_id": "816054990879",
"interactive": false,
"thread": {
"id": 52913017705957
}
Expand Down Expand Up @@ -8259,6 +8260,9 @@
"serial_number": "ffffffffe0104823bd3de859d5bc8bc7",
"version": "1007.3.0011603.1"
},
"process": {
"interactive": false
},
"related": {
"hash": [
"3950066843"
Expand Down Expand Up @@ -8553,6 +8557,7 @@
},
"process": {
"entity_id": "7073822473144",
"interactive": false,
"pid": 744,
"thread": {
"id": 48689911139327
Expand Down Expand Up @@ -9365,6 +9370,7 @@
},
"process": {
"entity_id": "30254389526587",
"interactive": false,
"thread": {
"id": 275230771323179
}
Expand Down Expand Up @@ -11586,6 +11592,9 @@
"serial_number": "ffffffffe0104823bd3de859d5bc8bc7",
"version": "1007.3.0011603.1"
},
"process": {
"interactive": false
},
"related": {
"hash": [
"3950066843"
Expand Down Expand Up @@ -12132,6 +12141,9 @@
"type": "macos"
}
},
"process": {
"interactive": true
},
"related": {
"hash": [
"821711964"
Expand Down Expand Up @@ -12610,6 +12622,9 @@
"serial_number": "ffffffffe0104823bd3de859d5bc8bc7",
"version": "1007.3.0011603.1"
},
"process": {
"interactive": false
},
"related": {
"hash": [
"3950066843"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"type": "windows"
}
},
"process": {
"interactive": false
},
"related": {
"user": [
"DOMAIN\\BRADLEYA",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@
"ApplicationName": "7371f07",
"CommandCount": 3,
"CommandCountMax": 983,
"CommandHistory": "41c56f9bd5471921f1ad5eb1eaa88bd7d4dcce1feb86682fa",
"CommandHistory": [
"41c56f9bd5471921f1ad5eb1eaa88bd7d4dcce1feb86682fa"
],
"ConfigStateHash": "7040662006",
"EffectiveTransmissionClass": "3",
"Entitlements": "96",
Expand Down Expand Up @@ -448,6 +450,7 @@
"version": "2c8b.4.bab7095.e6"
},
"process": {
"command_line": "41c56f9bd5471921f1ad5eb1eaa88bd7d4dcce1feb86682fa",
"entity_id": "3502200260267"
},
"related": {
Expand Down Expand Up @@ -6223,6 +6226,7 @@
"command_line": "82\\340d600\\4a6a0a4b\\4cdbc.exe",
"entity_id": "25700434000",
"executable": "\\6ba0bd\\257d4e13\\d598026\\dc9ec376\\4cdbc.exe",
"interactive": false,
"name": "4cdbc.exe"
},
"related": {
Expand Down Expand Up @@ -8749,6 +8753,7 @@
},
"process": {
"entity_id": "6990300009751",
"interactive": false,
"thread": {
"id": 95004910750900
}
Expand Down Expand Up @@ -8842,6 +8847,9 @@
"serial_number": "e4b4d652bb68d0b6eaf25c3a357bd566",
"version": "2c8b.4.ae3729d.e6"
},
"process": {
"interactive": false
},
"related": {
"hash": [
"3440491101"
Expand Down Expand Up @@ -8955,6 +8963,7 @@
},
"process": {
"entity_id": "3014546000418",
"interactive": false,
"pid": 173,
"thread": {
"id": 610009300097503
Expand Down Expand Up @@ -9144,6 +9153,7 @@
},
"process": {
"entity_id": "1776052010570",
"interactive": false,
"thread": {
"id": 500010382010308
}
Expand Down Expand Up @@ -11942,6 +11952,7 @@
"command_line": "System",
"entity_id": "21475403566",
"executable": "System",
"interactive": true,
"name": "System"
},
"related": {
Expand Down
Loading
Loading