Skip to content

Commit

Permalink
Restore rules and disable prebuiltRulesFromSavedObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
rw-access committed Jul 20, 2021
1 parent 327abcb commit c0e4e03
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const createMockConfig = (): ConfigType => ({
packagerTaskInterval: '60s',
alertMergeStrategy: 'missingFields',
prebuiltRulesFromFileSystem: true,
prebuiltRulesFromSavedObjects: true,
prebuiltRulesFromSavedObjects: false,
});

export const mockGetCurrentUser = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,9 @@ import rule554 from './privilege_escalation_printspooler_malicious_registry_modi
import rule555 from './privilege_escalation_printspooler_suspicious_file_deletion.json';
import rule556 from './privilege_escalation_unusual_printspooler_childprocess.json';
import rule557 from './defense_evasion_disabling_windows_defender_powershell.json';
// import rule558 from './defense_evasion_enable_network_discovery_with_netsh.json';
// import rule559 from './defense_evasion_execution_windefend_unusual_path.json';
// import rule560 from './persistence_via_bits_job_notify_command.json';
import rule558 from './defense_evasion_enable_network_discovery_with_netsh.json';
import rule559 from './defense_evasion_execution_windefend_unusual_path.json';
import rule560 from './persistence_via_bits_job_notify_command.json';

export const rawRules = [
rule1,
Expand Down Expand Up @@ -1129,7 +1129,7 @@ export const rawRules = [
rule555,
rule556,
rule557,
// rule558,
// rule559,
// rule560,
rule558,
rule559,
rule560,
];
2 changes: 1 addition & 1 deletion x-pack/test/security_solution_cypress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
`--elasticsearch.ssl.certificateAuthorities=${CA_CERT_PATH}`,
// retrieve rules from the filesystem but not from fleet for Cypress tests
'--xpack.securitySolution.prebuiltRulesFromFileSystem=true',
'--xpack.securitySolution.prebuiltRulesFromSavedObjects=true',
'--xpack.securitySolution.prebuiltRulesFromSavedObjects=false',
],
},
};
Expand Down

0 comments on commit c0e4e03

Please sign in to comment.