fix: 调整detection列表和下拉中的描述字段逻辑
This commit is contained in:
@@ -67,6 +67,7 @@
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
&.row__content--link {
|
&.row__content--link {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
@@ -100,6 +101,10 @@
|
|||||||
margin-right: 7px;
|
margin-right: 7px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.row__content1 {
|
||||||
|
display: block;
|
||||||
|
padding-right: 50px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,22 +61,19 @@
|
|||||||
|
|
||||||
.detection-tag-status0 {
|
.detection-tag-status0 {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-family: NotoSansHans-Medium;
|
|
||||||
background: rgba(113, 113, 113, 0.12);
|
background: rgba(113, 113, 113, 0.12);
|
||||||
color: #717171;
|
color: #717171;
|
||||||
padding: 0 12px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detection-tag-status1 {
|
.detection-tag-status1 {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-family: NotoSansHans-Medium;
|
|
||||||
background: rgba(126, 159, 84, 0.12);
|
background: rgba(126, 159, 84, 0.12);
|
||||||
color: #7E9F54;
|
color: #7E9F54;
|
||||||
padding: 0 8px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detection-table-library {
|
.detection-table-library {
|
||||||
font-family: NotoSansSChineseRegular;
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #046ECA;
|
color: #046ECA;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|||||||
@@ -16,8 +16,7 @@
|
|||||||
class="detection-event-severity-color-block"
|
class="detection-event-severity-color-block"
|
||||||
:style="`background-color: ${eventSeverityColor[detection.eventSeverity]}`">
|
:style="`background-color: ${eventSeverityColor[detection.eventSeverity]}`">
|
||||||
</span>
|
</span>
|
||||||
<!-- <span class="detection-event-severity-block">{{ detection.securityType || '-' }}</span>-->
|
<span class="detection-event-severity-block">{{ detection.eventName || '-' }}</span>
|
||||||
<span class="detection-event-severity-block">{{ detection.eventType || '-' }}</span>
|
|
||||||
<i class="cn-icon cn-icon-attacker" ></i>{{detection.offenderIp || '-'}}
|
<i class="cn-icon cn-icon-attacker" ></i>{{detection.offenderIp || '-'}}
|
||||||
<div v-if="detection.domain" class="domain">{{detection.domain}}</div>
|
<div v-if="detection.domain" class="domain">{{detection.domain}}</div>
|
||||||
<span class="line">-------</span>
|
<span class="line">-------</span>
|
||||||
@@ -41,6 +40,11 @@
|
|||||||
<span>{{$t('detections.severity')}} : </span>
|
<span>{{$t('detections.severity')}} : </span>
|
||||||
<span>{{detection.eventSeverity || '-'}}</span>
|
<span>{{detection.eventSeverity || '-'}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="basic-info__item" v-if="detection.eventType">
|
||||||
|
<i class="cn-icon cn-icon-event-type"></i>
|
||||||
|
<span>{{$t('detections.eventType')}} : </span>
|
||||||
|
<span>{{detection.eventType || '-'}}</span>
|
||||||
|
</div>
|
||||||
<div class="basic-info__item" v-if="detection.malware">
|
<div class="basic-info__item" v-if="detection.malware">
|
||||||
<i class="cn-icon cn-icon-trojan"></i>
|
<i class="cn-icon cn-icon-trojan"></i>
|
||||||
<span>{{$t('detection.list.malwareName')}} : </span>
|
<span>{{$t('detection.list.malwareName')}} : </span>
|
||||||
|
|||||||
@@ -3,17 +3,18 @@
|
|||||||
<div class="overview__left">
|
<div class="overview__left">
|
||||||
<div class="overview__title">{{ $t('overall.remark') }}</div>
|
<div class="overview__title">{{ $t('overall.remark') }}</div>
|
||||||
<div class="overview__row">
|
<div class="overview__row">
|
||||||
<div class="row__content1" v-if="detection.malware">
|
<div class="row__content1" v-if="detection.eventType === 'Command and Control' && detection.eventName === 'Cobalt Strike'">
|
||||||
<span class="row__content--link">
|
<span class="row__content--link">{{detection.victimIp}}</span> communicated with <span class="row__content--link">{{detection.offenderIp}}</span> that was associated with the indicator of Cobalt Strike activity, {{$_.get(detection, 'eventInfoObj.ioc_value', '') || ''}}.
|
||||||
{{ $_.get(detection, 'malware.mitreAttackDescription', '-') || '-' }}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row__content1" v-if="detection.darkweb">
|
<div class="row__content1" v-else-if="detection.eventType === 'Command and Control' && detection.eventName === 'Mirai'">
|
||||||
<span class="row__content--link">
|
<span class="row__content--link">{{detection.victimIp}}</span> communicated with <span class="row__content--link">{{detection.offenderIp}}</span> that was associated with the indicator of Mirai attacks, {{$_.get(detection, 'eventInfoObj.ioc_value', '') || ''}}.
|
||||||
{{ $_.get(detection, 'malware.mitreAttackDescription', '-') || '-' }}
|
</div>
|
||||||
</span>
|
<div class="row__content1" v-else-if="detection.eventType === 'Anonymity'">
|
||||||
|
<span class="row__content--link">{{detection.victimIp}}</span> communicated with <span class="row__content--link">{{detection.offenderIp}}</span> that was associated with the indicator of Tor/I2P/MTProxy/Obfs4/Snowflake/GeneralBridge, {{$_.get(detection, 'eventInfoObj.ioc_value', '') || ''}}.
|
||||||
|
</div>
|
||||||
|
<div class="row__content1" v-else>
|
||||||
|
{{basicInfo.ruleDescription || '-'}}
|
||||||
</div>
|
</div>
|
||||||
<span v-else>-</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="overview__title">Fields</div>
|
<div class="overview__title">Fields</div>
|
||||||
<div class="overview__row">
|
<div class="overview__row">
|
||||||
@@ -456,6 +457,13 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if (this.detection.ruleId) {
|
||||||
|
axios.get(`${api.detection.detail}/${this.detection.ruleId}`).then(res => {
|
||||||
|
if (res.status === 200) {
|
||||||
|
this.basicInfo.ruleDescription = res.data.data.description
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
queryEvent () {
|
queryEvent () {
|
||||||
axios.get(api.detection.securityEvent.relationEvent, {
|
axios.get(api.detection.securityEvent.relationEvent, {
|
||||||
|
|||||||
Reference in New Issue
Block a user