forked from bytedance/Elkeid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
337eab.7.min.js
1 lines (1 loc) · 18.7 KB
/
337eab.7.min.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{552:function(t,e,n){"use strict";n.r(e),n.d(e,"AlarmType",(function(){return r})),n.d(e,"getDisplayAlarmType",(function(){return i})),n.d(e,"AlarmLevel",(function(){return a})),n.d(e,"GetAlarmList",(function(){return s})),n.d(e,"UpdateAlarmStatus",(function(){return l})),n.d(e,"GetAlarmStatistics",(function(){return d})),n.d(e,"GetAlarmDetail",(function(){return p})),n.d(e,"RangeType",(function(){return o})),n.d(e,"MatchType",(function(){return c})),n.d(e,"matchTypeOptions",(function(){return f})),n.d(e,"WhiteMatchField",(function(){return m})),n.d(e,"whiteMatchFieldOptions",(function(){return b})),n.d(e,"GetWhiteList",(function(){return v})),n.d(e,"AddWhiteList",(function(){return g})),n.d(e,"DeleteWhiteList",(function(){return h})),n.d(e,"GetAlarmRaw",(function(){return O}));var r,a,u=n(40);function i(t){switch(t){case r.bruteforce:return"暴力破解";case r.privilege_escalation:return"提权攻击";case r.persistent:return"后门驻留";case r.evasion:return"变形木马";case r.purpose:return"恶意破坏";case r.static_scan:return"静态检测";case r.killchain:return"杀伤链";default:return"-"}}!function(t){t.bruteforce="bruteforce",t.privilege_escalation="privilege_escalation",t.persistent="persistent",t.evasion="evasion",t.purpose="purpose",t.static_scan="static_scan",t.killchain="killchain"}(r||(r={})),function(t){t.critical="critical",t.high="high",t.medium="medium",t.low="low"}(a||(a={}));var o,c,s=function(t){var e=t.data,n=t.params;return Object(u.b)({method:"post",url:"/api/v6/alarm/list",data:e,params:n},"获取告警列表信息")},l=function(t){var e=t.data;return Object(u.b)({method:"post",url:"/api/v6/alarm/update",data:e},"更新告警处理状态",!0)},d=function(t){var e=t.params;return Object(u.b)({method:"get",url:"/api/v6/alarm/statistics",params:e},"获取告警统计数据")},p=function(t){var e=t.params;return Object(u.b)({method:"get",url:"/api/v6/alarm/get/".concat(e.alarm_id)},"获取告警详情")};!function(t){t[t.all=0]="all",t[t.self=1]="self"}(o||(o={})),function(t){t[t.equal=0]="equal",t[t.reg=1]="reg"}(c||(c={}));var m,f=[{label:"等于",value:c.equal},{label:"正则匹配",value:c.reg}];!function(t){t.argv="argv",t.pgid_argv="pgid_argv",t.exe="exe",t.sip="sip",t.dip="dip",t.pid_tree="pid_tree",t.ld_preload="ld_preload",t.ko_file="ko_file",t.module_name="module_name",t.exe_hash="exe_hash"}(m||(m={}));var b=[{label:"命令行",value:m.argv},{label:"组长命令行",value:m.pgid_argv},{label:"二进制",value:m.exe},{label:"来源IP",value:m.sip},{label:"目的IP",value:m.dip},{label:"进程链",value:m.pid_tree},{label:"运行时链接",value:m.ld_preload},{label:"内核模块文件",value:m.ko_file},{label:"内核模块名",value:m.module_name},{label:"文件指纹",value:m.exe_hash}],v=function(t){var e=t.data,n=t.params;return Object(u.b)({method:"post",url:"/api/v6/whitelist/list",data:e,params:n},"获取白名单列表信息")},g=function(t){var e=t.data;return Object(u.b)({method:"post",url:"/api/v6/whitelist/add",data:e},"新增白名单",!0)},h=function(t){var e=t.data;return Object(u.b)({method:"post",url:"/api/v6/whitelist/del",data:e},"删除白名单",!0)},O=function(t){var e=t.params;return Object(u.b)({method:"get",url:"/api/v6/alarm/raw/".concat(e.alarm_id)},"获取告警原始数据")}},553:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(566),a=n.n(r);function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return t?a.a.unix(t).format(e):"-"}},555:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return c}));var r={};n.r(r),n.d(r,"GetVulnStatistics",(function(){return _})),n.d(r,"GetVulnList",(function(){return j})),n.d(r,"GetVulnInfo",(function(){return D})),n.d(r,"GetVulnHostList",(function(){return N})),n.d(r,"OperateHostVulnBatch",(function(){return T})),n.d(r,"OperateHostVuln",(function(){return y}));var a,u,i,o,c,s=n(4),l=n.n(s),d=n(52),p=n(552),m=n(557),f=n(558),b=n(559),v=n(569),g=n(567),h=n(556),O=n(40),_=function(t){var e=t.data;return Object(O.b)({method:"post",url:"/api/v6/vuln/Statistics",data:e},"获取漏洞统计信息")},j=function(t){var e=t.data,n=t.params;return Object(O.b)({method:"post",url:"/api/v6/vuln/GetVulnList",data:e,params:n},"获取漏洞列表")},D=function(t){var e=t.params;return Object(O.b)({method:"get",url:"/api/v6/vuln/GetVulnInfo",params:e},"获取漏洞基本信息")},N=function(t){var e=t.data,n=t.params;return Object(O.b)({method:"post",url:"/api/v6/vuln/VulnHostList",data:e,params:n},"获取漏洞影响资产")},T=function(t){var e=t.data,n=e.after_status===u.processed?"处理主机漏洞":e.after_status===u.ignored?"忽略主机漏洞":"撤回";return Object(O.b)({method:"post",url:"/api/v6/vuln/OneIpVulnControl",data:e},"".concat(n),!0)},y=function(t){var e=t.data,n=e.after_status===u.processed?"处理主机漏洞":e.after_status===u.ignored?"忽略主机漏洞":"撤回";return Object(O.b)({method:"post",url:"/api/v6/vuln/VulnIpControl",data:e},"".concat(n),!0)};function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach((function(e){l()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}!function(t){t.low="low",t.mid="mid",t.high="high",t.danger="danger"}(a||(a={})),function(t){t.processed="processed",t.unprocessed="unprocessed",t.ignored="ignored"}(u||(u={})),function(t){t.uninstall="uninstall",t.running="running",t.abnormal="abnormal",t.offline="offline"}(i||(i={})),function(t){t.running="running",t.abnormal="abnormal",t.exited="exited",t.busy="busy"}(o||(o={})),function(t){t[t.notdeal=0]="notdeal",t[t.deal=1]="deal",t[t.falsePositive=2]="falsePositive"}(c||(c={}));w(w(w(w(w(w(w(w(w({},d),h),m),r),b),p),f),v),g)},556:function(t,e,n){"use strict";n.r(e),n.d(e,"TaskStatusEunm",(function(){return r})),n.d(e,"SubTaskStatusEnum",(function(){return a})),n.d(e,"TaskTypeEunm",(function(){return u})),n.d(e,"GetTaskList",(function(){return o})),n.d(e,"GetTaskInfo",(function(){return c})),n.d(e,"GetSubTaskList",(function(){return s})),n.d(e,"GetTaskHostStatus",(function(){return l})),n.d(e,"OperateTask",(function(){return d})),n.d(e,"CreateAgentTask",(function(){return p})),n.d(e,"CreatePluginTask",(function(){return m})),n.d(e,"GetModuleId",(function(){return f}));var r,a,u,i=n(40);!function(t){t.running="running",t.created="created",t.finished="finished",t.cancelled="cancelled"}(r||(r={})),function(t){t.created="created",t.running="running",t.failed="failed",t.succeed="succeed"}(a||(a={})),function(t){t.plu_update="plu_update",t.plu_install="plu_install",t.plu_uninstall="plu_uninstall",t.agt_update="agt_update",t.agt_reboot="agt_reboot"}(u||(u={}));var o=function(t){var e=t.data,n=t.params;return Object(i.b)({method:"post",url:"/api/v6/agent/getTaskList",data:e,params:n},"获取任务列表")},c=function(t){var e=t.params;return Object(i.b)({method:"get",url:"/api/v6/agent/getTask/".concat(e.task_id)},"获取任务基本信息")},s=function(t){var e=t.data,n=t.params;return Object(i.b)({method:"post",url:"/api/v6/agent/getSubTaskList",data:e,params:n},"获取子任务列表")},l=function(t){var e=t.data;return Object(i.b)({method:"post",url:"/api/v6/agent/GetErrorHostNum",data:e},"获取创建任务主机状态",!1,!1)},d=function(t){var e=t.data;return Object(i.b)({method:"post",url:"/api/v6/agent/controlTask",data:e},"运行任务",!0)},p=function(t){var e=t.data;return Object(i.b)({method:"post",url:"/api/v6/agent/createAgentTask",data:e},"创建agent任务",!0)},m=function(t){var e=t.data;return Object(i.b)({method:"post",url:"/api/v6/agent/createPluTask",data:e},"创建插件任务",!0)},f=function(t){var e=t.data;return Object(i.b)({method:"post",url:"/api/v6/module/GetModuleId",data:e},"获取组件id",!1,!1)}},557:function(t,e,n){"use strict";n.r(e),n.d(e,"CompTypeEnum",(function(){return r})),n.d(e,"PlugTypeEnum",(function(){return a})),n.d(e,"GetCompList",(function(){return i})),n.d(e,"AddComp",(function(){return o})),n.d(e,"EditComp",(function(){return c})),n.d(e,"DeleteComp",(function(){return s}));var r,a,u=n(40);!function(t){t.agent="agent",t.plugin="plugin"}(r||(r={})),function(t){t.exec="exec",t.archive="archive"}(a||(a={}));var i=function(t){var e=t.data,n=t.params;return Object(u.b)({method:"post",url:"/api/v6/module/GetModuleList",data:e,params:n},"获取组件列表")},o=function(t){var e=t.data;return Object(u.b)({method:"post",url:"/api/v6/module/CreateModule",data:e},"新建组件",!0)},c=function(t){var e=t.data;return Object(u.b)({method:"post",url:"/api/v6/module/UpdateModule",data:e},"编辑组件",!0)},s=function(t){var e=t.data;return Object(u.b)({method:"post",url:"/api/v6/module/DeleteModule",data:e},"删除组件",!0)}},558:function(t,e,n){"use strict";n.r(e),n.d(e,"PortType",(function(){return r})),n.d(e,"DescribePortFingerprint",(function(){return i})),n.d(e,"DescribeProcessFingerprint",(function(){return o})),n.d(e,"DescribeUserFingerprint",(function(){return c})),n.d(e,"DescribeCronFingerprint",(function(){return s})),n.d(e,"DescribeServiceFingerprint",(function(){return l})),n.d(e,"SoftwareType",(function(){return u})),n.d(e,"DescribeSoftwareFingerprint",(function(){return d}));var r,a=n(40);!function(t){t[t.TCP=6]="TCP",t[t.UDP=17]="UDP"}(r||(r={}));var u,i=function(t){var e=t.data,n=t.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHostPort",data:e,params:n},"获取端口资产指纹列表信息")},o=function(t){var e=t.data,n=t.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHostProcess",data:e,params:n},"获取进程资产指纹列表信息")},c=function(t){var e=t.data,n=t.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHostUser",data:e,params:n},"获取系统用户资产指纹列表信息")},s=function(t){var e=t.data,n=t.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHostCron",data:e,params:n},"获取定时任务资产指纹列表信息")},l=function(t){var e=t.data,n=t.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHostService",data:e,params:n},"获取系统服务资产指纹列表信息")};!function(t){t.dpkg="dpkg",t.rpm="rpm",t.pypi="pypi",t.jar="jar"}(u||(u={}));var d=function(t){var e=t.data,n=t.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHostSoftware",data:e,params:n},"获取系统软件指纹列表信息")}},559:function(t,e,n){"use strict";n.r(e),n.d(e,"DescribeHostStatistics",(function(){return u})),n.d(e,"DescribeHosts",(function(){return i})),n.d(e,"ExportHostsStatusEnum",(function(){return r})),n.d(e,"ExportHosts",(function(){return o})),n.d(e,"DownloadFile",(function(){return c})),n.d(e,"DescribeTags",(function(){return s})),n.d(e,"AddTags",(function(){return l})),n.d(e,"DeleteTags",(function(){return d})),n.d(e,"UpdateTags",(function(){return p})),n.d(e,"DescribePlatforms",(function(){return m})),n.d(e,"DescribeIDCs",(function(){return f}));var r,a=n(40),u=function(){return Object(a.b)({method:"get",url:"/api/v6/asset-center/DescribeHostStatistics"},"获取主机统计信息")},i=function(t){var e=t.data,n=t.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHosts",data:e,params:n},"获取主机列表信息")};!function(t){t.init="init",t.exporting="exporting",t.saving="saving",t.success="success",t.failed="failed"}(r||(r={}));var o=function(t){var e=t.data;return Object(a.b)({method:"post",url:"/api/v6/asset-center/ExportHosts",data:e},"导出主机信息")},c=function(t){var e=t.params;return Object(a.b)({method:"get",url:"/api/v6/shared/Download/".concat(e.file_name),responseType:"blob"},"下载文件",!1,!1)},s=function(){return Object(a.b)({method:"get",url:"/api/v6/asset-center/DescribeTags"},"获取标签信息")},l=function(t){var e=t.data;return Object(a.b)({method:"post",url:"/api/v6/asset-center/AddTags",data:e},"添加标签",!0)},d=function(t){var e=t.data;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DeleteTags",data:e},"删除标签",!0)},p=function(t){var e=t.data;return Object(a.b)({method:"post",url:"/api/v6/asset-center/UpdateTags",data:e},"修改标签",!0)},m=function(){return Object(a.b)({method:"get",url:"/api/v6/asset-center/DescribePlatform"},"获取操作系统类型")},f=function(){return Object(a.b)({method:"get",url:"/api/v6/asset-center/DescribeIDC"},"获取数据中心类型")}},565:function(t,e,n){"use strict";var r=n(0),a=n.n(r),u=n(86),i=n.n(u),o=n(574),c=n.n(o),s="/data00/webprojectdev/hids_open/src/components/common/status-display-component/index.tsx",l=i.a.bind(c.a);e.a=function(t){var e=t.color,n=t.content;return a.a.createElement("div",{className:l("container"),__source:{fileName:s,lineNumber:15,columnNumber:5}},a.a.createElement("div",{className:l("circle"),style:{background:e},__source:{fileName:s,lineNumber:16,columnNumber:7}}),a.a.createElement("div",{className:l("content"),__source:{fileName:s,lineNumber:17,columnNumber:7}},n))}},567:function(t,e,n){"use strict";n.r(e),n.d(e,"GetTop10AlarmHosts",(function(){return a})),n.d(e,"GetTop10VulnHosts",(function(){return u})),n.d(e,"GetHostPlatformStatistics",(function(){return i})),n.d(e,"GetAgentVersionStatistics",(function(){return o})),n.d(e,"GetLast7DaysAlarmStatistics",(function(){return c})),n.d(e,"GetLast7DaysVulnStatistics",(function(){return s})),n.d(e,"GetLast7DaysOperationStatistics",(function(){return l}));var r=n(40),a=function(){return Object(r.b)({method:"get",url:"/api/v6/asset-center/DescribeTop10AlarmHosts"},"获取告警数TOP10的主机列表")},u=function(){return Object(r.b)({method:"get",url:"/api/v6/asset-center/DescribeTop10VulnHosts"},"获取漏洞数TOP10的主机列表")},i=function(){return Object(r.b)({method:"get",url:"/api/v6/asset-center/DescribeHostPlatformStatistics"},"获取主机系统统计")},o=function(){return Object(r.b)({method:"get",url:"/api/v6/asset-center/DescribeAgentVersionStatistics"},"获取客户端版本统计")},c=function(){return Object(r.b)({method:"get",url:"/api/v6/situation/DescribeLast7DaysAlarmStatistics"},"获取最近7天安全告警统计")},s=function(){return Object(r.b)({method:"get",url:"/api/v6/situation/DescribeLast7DaysVulnStatistics"},"获取最近7天漏洞情报统计")},l=function(){return Object(r.b)({method:"get",url:"/api/v6/situation/DescribeLast7DaysOperationStatistics"},"获取最近7天运营态势")}},569:function(t,e,n){"use strict";n.r(e),n.d(e,"getPluginTypeContent",(function(){return u})),n.d(e,"DescribeHostDetail",(function(){return i}));var r=n(40),a=n(557);function u(t){switch(t){case a.PlugTypeEnum.archive:return"压缩包";case a.PlugTypeEnum.exec:return"可执行文件";default:return""}}var i=function(t){var e=t.params;return Object(r.b)({method:"get",url:"/api/v6/asset-center/DescribeHostDetail",params:e},"获取主机详情信息")}},574:function(t,e,n){t.exports={container:"container-5be80ecb83",circle:"circle-f32e1ad32c"}},597:function(t,e,n){"use strict";var r=n(0),a=n.n(r),u=n(565),i=n(555);e.a=function(t){var e=function(t){switch(t){case i.c.running:return{content:"运行中",color:"#00AA2A"};case i.c.uninstall:return{content:"未安装",color:"#C9CDD4"};case i.c.abnormal:return{content:"运行异常",color:"#FA9600"};case i.c.offline:return{content:"离线",color:"#E63F3F"};default:return{content:"",color:"transparent"}}}(t.value);return a.a.createElement(u.a,{color:null==e?void 0:e.color,content:null==e?void 0:e.content,__source:{fileName:"/data00/webprojectdev/hids_open/src/components/common/host-status-component/index.tsx",lineNumber:27,columnNumber:10}})}},598:function(t,e,n){"use strict";var r,a=n(217),u=(n(209),n(27)),i=n(20),o=n.n(i),c=n(0),s=n.n(c),l=n(86),d=n.n(l);function p(){return(p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var m=function(t){return s.a.createElement("svg",p({width:10,height:10,fill:"none"},t),r||(r=s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.976 4.366l2.8-2.799a.208.208 0 01.294 0l.294.295a.208.208 0 010 .294l-2.799 2.8 2.8 2.798a.208.208 0 010 .295l-.295.295a.208.208 0 01-.295 0l-2.799-2.8-2.799 2.8a.208.208 0 01-.294 0l-.295-.295a.208.208 0 010-.295l2.799-2.799-2.8-2.799a.208.208 0 010-.294l.296-.295a.208.208 0 01.294 0l2.8 2.8z",fill:"#4E5969"})))},f=n(605),b=n.n(f),v="/data00/webprojectdev/hids_open/src/components/common/tag-component/index.tsx",g=d.a.bind(b.a);e.a=function(t){var e,n=t.value,r=t.showNum,i=t.isEditable,l=t.onDelete,d=t.onEdit,p=r?null==n?void 0:n.slice(0,r):n,f=Object(c.useState)(!1),b=o()(f,2),h=b[0],O=b[1];return s.a.createElement("div",{className:g("tag-component-container"),onMouseOver:function(){h||O(!0)},onMouseOut:function(){O(!1)},__source:{fileName:v,lineNumber:31,columnNumber:5}},0===(null==n?void 0:n.length)?s.a.createElement("span",{className:g("no-value"),__source:{fileName:v,lineNumber:42,columnNumber:30}},"-"):"",null==p?void 0:p.map((function(t){return s.a.createElement("div",{className:g("tag-item"),key:t,__source:{fileName:v,lineNumber:44,columnNumber:9}},s.a.createElement("div",{__source:{fileName:v,lineNumber:45,columnNumber:11}},t),i&&s.a.createElement("div",{className:g("tag-close-box"),onClick:function(){null==l||l(t)},__source:{fileName:v,lineNumber:47,columnNumber:13}},s.a.createElement(m,{__source:{fileName:v,lineNumber:54,columnNumber:15}})))})),(null==n?void 0:n.length)-(null==p?void 0:p.length)>0?s.a.createElement(u.a,{content:s.a.createElement("div",{className:g("tootip-content-container"),__source:{fileName:v,lineNumber:62,columnNumber:13}},null==n||null===(e=n.slice(r))||void 0===e?void 0:e.map((function(t){return s.a.createElement("div",{key:t,__source:{fileName:v,lineNumber:64,columnNumber:17}},t)}))),__source:{fileName:v,lineNumber:60,columnNumber:9}},s.a.createElement("div",{className:g("more-tag"),__source:{fileName:v,lineNumber:69,columnNumber:11}},"+",(null==n?void 0:n.length)-(null==p?void 0:p.length))):null,i&&s.a.createElement(a.a,{fontSize:16,style:{cursor:"pointer",marginBottom:8,visibility:h?"visible":"hidden",color:"#4E5969"},onClick:function(){null==d||d(n)},__source:{fileName:v,lineNumber:73,columnNumber:9}}))}},605:function(t,e,n){t.exports={"tag-component-container":"tag-component-container-7fbe513a00","tag-item":"tag-item-950f8d87b9","tag-close-box":"tag-close-box-f6dd0a6433","more-tag":"more-tag-cba65ceab5","no-value":"no-value-c4b05bf4a4","tootip-content-container":"tootip-content-container-685c761fe3"}}}]);