mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Update process/parent filterlists for RAD detection research. (#168974)
## Summary Adds requested filterlist entries for prebuilt rules - required for tuning and research. ### Checklist Delete any items that are not applicable to this PR. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios ### Risk Matrix Delete this section if it is not applicable to this PR. Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release. When forming the risk matrix, consider some of the following examples and how they may potentially impact the change: | Risk | Probability | Severity | Mitigation/Notes | |---------------------------|-------------|----------|-------------------------| | Multiple Spaces—unexpected behavior in non-default Kibana Space. | Low | High | Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces. | | Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. | High | Low | Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure. | | Code should gracefully handle cases when feature X or plugin Y are disabled. | Medium | High | Unit tests will verify that any feature flag or plugin combination still results in our service operational. | | [See more potential risk examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) | ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
parent
91435a573f
commit
8cf27642d0
2 changed files with 70 additions and 0 deletions
|
@ -278,5 +278,61 @@ describe('Security Telemetry filters', () => {
|
|||
},
|
||||
});
|
||||
});
|
||||
|
||||
it('copies over process/parent fields', () => {
|
||||
const event = {
|
||||
not_event: 'much data, much wow',
|
||||
process: {
|
||||
code_signature: {
|
||||
status: 'test',
|
||||
exists: false,
|
||||
},
|
||||
Ext: {
|
||||
api: {
|
||||
parameters: {
|
||||
desired_access: 'test',
|
||||
desired_access_numeric: 'test',
|
||||
text_block: 'i should not be here',
|
||||
},
|
||||
},
|
||||
relative_file_creation_time: 'test',
|
||||
},
|
||||
parent: {
|
||||
code_signature: {
|
||||
subject_name: 'test',
|
||||
status: 'test',
|
||||
text_block: 'i should not be here',
|
||||
exists: false,
|
||||
trusted: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
expect(copyAllowlistedFields(prebuiltRuleAllowlistFields, event)).toStrictEqual({
|
||||
process: {
|
||||
code_signature: {
|
||||
status: 'test',
|
||||
exists: false,
|
||||
},
|
||||
Ext: {
|
||||
api: {
|
||||
parameters: {
|
||||
desired_access: 'test',
|
||||
desired_access_numeric: 'test',
|
||||
},
|
||||
},
|
||||
relative_file_creation_time: 'test',
|
||||
},
|
||||
parent: {
|
||||
code_signature: {
|
||||
subject_name: 'test',
|
||||
status: 'test',
|
||||
exists: false,
|
||||
trusted: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -99,6 +99,7 @@ export const prebuiltRuleAllowlistFields: AllowlistFields = {
|
|||
relative_file_name_modify_time: true,
|
||||
},
|
||||
code_signature: {
|
||||
exists: true,
|
||||
status: true,
|
||||
subject_name: true,
|
||||
trusted: true,
|
||||
|
@ -147,6 +148,8 @@ export const prebuiltRuleAllowlistFields: AllowlistFields = {
|
|||
args: true,
|
||||
args_count: true,
|
||||
code_signature: {
|
||||
exists: true,
|
||||
status: true,
|
||||
subject_name: true,
|
||||
trusted: true,
|
||||
},
|
||||
|
@ -159,11 +162,16 @@ export const prebuiltRuleAllowlistFields: AllowlistFields = {
|
|||
Ext: {
|
||||
api: {
|
||||
name: true,
|
||||
parameters: {
|
||||
desired_access: true,
|
||||
desired_access_numeric: true,
|
||||
},
|
||||
},
|
||||
effective_parent: {
|
||||
executable: true,
|
||||
name: true,
|
||||
},
|
||||
relative_file_creation_time: true,
|
||||
token: {
|
||||
integrity_level_name: true,
|
||||
},
|
||||
|
@ -174,6 +182,12 @@ export const prebuiltRuleAllowlistFields: AllowlistFields = {
|
|||
parent: {
|
||||
args: true,
|
||||
command_line: true,
|
||||
code_signature: {
|
||||
subject_name: true,
|
||||
status: true,
|
||||
exists: true,
|
||||
trusted: true,
|
||||
},
|
||||
entity_id: true,
|
||||
executable: true,
|
||||
Ext: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue