Skip to content

Commit

Permalink
[7.10] [Security Solutions][Detection Engine] Changes wording for thr…
Browse files Browse the repository at this point in the history
…eat matches and rules (#81334) (#81835)

* [Security Solutions][Detection Engine] Changes wording for threat matches and rules (#81334)

## Summary

Changes the wording for threat matches and rules

cc @marrasherrier @MikePaquette @paulewing

Before:

<img width="1063" alt="Screen Shot 2020-10-21 at 8 52 44 AM" src="https://user-images.githubusercontent.com/1151048/96737354-ce1ee080-137a-11eb-973f-6a7d96f69117.png">

After:
<img width="1055" alt="Screen Shot 2020-10-26 at 10 10 17 PM" src="https://user-images.githubusercontent.com/1151048/97256235-1fdec500-17d8-11eb-8a8b-4adffd23dbdc.png">

### Checklist

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)

* skips overview tests

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Gloria Hornero <[email protected]>
  • Loading branch information
3 people authored Oct 28, 2020
1 parent 46a7cd2 commit e4658ad
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { loginAndWaitForPage } from '../tasks/login';
import { OVERVIEW_URL } from '../urls/navigation';
import { esArchiverUnload, esArchiverLoad } from '../tasks/es_archiver';

describe('Overview Page', () => {
describe.skip('Overview Page', () => {
before(() => {
cy.stubSearchStrategyApi('overviewHostQuery', 'overview_search_strategy');
cy.stubSearchStrategyApi('overviewNetworkQuery', 'overview_search_strategy');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const FIELD = i18n.translate('xpack.securitySolution.threatMatch.fieldDes
export const THREAT_FIELD = i18n.translate(
'xpack.securitySolution.threatMatch.threatFieldDescription',
{
defaultMessage: 'Threat index field',
defaultMessage: 'Indicator index field',
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ describe('helpers', () => {
it('returns a humanized description for a threat_match type', () => {
const [result]: ListItems[] = buildRuleTypeDescription('Test label', 'threat_match');

expect(result.description).toEqual('Threat Match');
expect(result.description).toEqual('Indicator Match');
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const THRESHOLD_TYPE_DESCRIPTION = i18n.translate(
export const THREAT_MATCH_TYPE_DESCRIPTION = i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.threatMatchRuleTypeDescription',
{
defaultMessage: 'Threat Match',
defaultMessage: 'Indicator Match',
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ export const THRESHOLD_TYPE_DESCRIPTION = i18n.translate(
export const THREAT_MATCH_TYPE_TITLE = i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.stepDefineRule.ruleTypeField.threatMatchTitle',
{
defaultMessage: 'Threat Match',
defaultMessage: 'Indicator Match',
}
);

export const THREAT_MATCH_TYPE_DESCRIPTION = i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.stepDefineRule.ruleTypeField.threatMatchDescription',
{
defaultMessage: 'Upload value lists to write rules around a list of known bad attributes',
defaultMessage:
'Use indicators from intelligence sources to detect matching events and alerts.',
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export const schema: FormSchema<DefineStepRule> = {
label: i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.stepDefineRule.fieldThreatIndexPatternsLabel',
{
defaultMessage: 'Threat index patterns',
defaultMessage: 'Indicator Index Patterns',
}
),
helpText: <EuiText size="xs">{THREAT_MATCH_INDEX_HELPER_TEXT}</EuiText>,
Expand Down Expand Up @@ -265,7 +265,7 @@ export const schema: FormSchema<DefineStepRule> = {
label: i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.stepDefineRule.fieldThreatMappingLabel',
{
defaultMessage: 'Threat Mapping',
defaultMessage: 'Indicator Mapping',
}
),
validations: [
Expand Down Expand Up @@ -301,7 +301,7 @@ export const schema: FormSchema<DefineStepRule> = {
label: i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.stepDefineRule.fieldThreatQueryBarLabel',
{
defaultMessage: 'Threat index query',
defaultMessage: 'Indicator Index Query',
}
),
validations: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Query with a threat mapping",
"name": "Query with a indicator mapping",
"description": "Query with a threat mapping",
"rule_id": "threat-mapping",
"risk_score": 1,
Expand Down

0 comments on commit e4658ad

Please sign in to comment.