Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 9 commits into from
Oct 27, 2020
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",
Copy link
Contributor

Choose a reason for hiding this comment

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

Super duper nit:

Suggested change
"name": "Query with a indicator mapping",
"name": "Query with an indicator mapping",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Crap missed this after the merge! Thanks though, this shows the level you're looking at the code. I appreciate it. Always nervous of making simple slip ups in the UI.

"description": "Query with a threat mapping",
"rule_id": "threat-mapping",
"risk_score": 1,
Expand Down