SpyGuard/app/backend/dist/js/chunk-2d22d432.91ebbe55.js.map
2022-11-06 15:51:33 +01:00

1 line
19 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/views/analysis-engine.vue","webpack:///src/views/analysis-engine.vue","webpack:///./src/views/analysis-engine.vue?a0b6","webpack:///./src/views/analysis-engine.vue?058c"],"names":["render","_vm","this","_c","_self","staticClass","attrs","class","toaster","show","_v","_s","message","directives","name","rawName","value","config","analysis","heuristics","expression","domProps","Array","isArray","_i","on","$event","$$a","$$el","target","$$c","checked","$$v","$$i","$set","concat","slice","local_analysis","iocs","whitelist","active","indicators_types","includes","switch_iocs_types","_e","_l","iocs_tags","tag","key","toUpperCase","staticRenderFns","data","check_certificate","certificate","type","props","methods","switch_config","axios","timeout","headers","setTimeout","catch","load_config","console","then","get_iocs_tags","created","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,kBAAkBC,MAAM,CAAC,GAAK,YAAY,CAACH,EAAG,MAAM,CAACI,MAAM,CAAE,wBAA0BN,EAAIO,QAAQC,KAAM,wBAA0BR,EAAIO,QAAQC,OAAQ,CAACR,EAAIS,GAAGT,EAAIU,GAAGV,EAAIO,QAAQI,YAAYT,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACF,EAAG,KAAK,CAACE,YAAY,WAAW,CAACJ,EAAIS,GAAG,oCAAoCP,EAAG,KAAK,CAACE,YAAY,cAAc,CAACJ,EAAIS,GAAG,uBAAuBP,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,QAAQ,CAACE,YAAY,eAAe,CAACF,EAAG,QAAQ,CAACU,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOf,EAAIgB,OAAOC,SAASC,WAAYC,WAAW,+BAA+Bd,MAAM,CAAC,KAAO,YAAYe,SAAS,CAAC,QAAUC,MAAMC,QAAQtB,EAAIgB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AEAnB,8BACA,kDACAe,0CACAC,YACAC,SAAA,sBACA,SACA,oCAEAE,0BAEAJ,uCACAC,YACAC,SAAA,sBACA,SACA,oCAEAE,yBACA,sBAIAK,mBACA,yBACA,mBACA,yBC1IyV,I,YCOrVC,EAAY,eACd,EACApE,EACAkD,GACA,EACA,KACA,KACA,MAIa,aAAAkB,E","file":"js/chunk-2d22d432.91ebbe55.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"backend-content\",attrs:{\"id\":\"content\"}},[_c('div',{class:{ 'alert-toaster-visible' : _vm.toaster.show, 'alert-toaster-hidden' : !_vm.toaster.show }},[_vm._v(_vm._s(_vm.toaster.message))]),_c('div',{staticClass:\"column col-8 col-xs-12\"},[_c('h3',{staticClass:\"s-title\"},[_vm._v(\"Detection engine configuration\")]),_c('h5',{staticClass:\"s-subtitle\"},[_vm._v(\"Detection methods\")]),_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.analysis.heuristics),expression:\"config.analysis.heuristics\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.config.analysis.heuristics)?_vm._i(_vm.config.analysis.heuristics,null)>-1:(_vm.config.analysis.heuristics)},on:{\"change\":[function($event){var $$a=_vm.config.analysis.heuristics,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.config.analysis, \"heuristics\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.config.analysis, \"heuristics\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.config.analysis, \"heuristics\", $$c)}},function($event){return _vm.local_analysis('analysis', 'heuristics')}]}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Use heuristic detection for suspect behaviour. \")]),_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.analysis.iocs),expression:\"config.analysis.iocs\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.config.analysis.iocs)?_vm._i(_vm.config.analysis.iocs,null)>-1:(_vm.config.analysis.iocs)},on:{\"change\":[function($event){var $$a=_vm.config.analysis.iocs,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.config.analysis, \"iocs\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.config.analysis, \"iocs\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.config.analysis, \"iocs\", $$c)}},function($event){return _vm.local_analysis('analysis', 'iocs')}]}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Use Indicator of Compromise (IoC) based detection. \")]),_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.analysis.whitelist),expression:\"config.analysis.whitelist\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.config.analysis.whitelist)?_vm._i(_vm.config.analysis.whitelist,null)>-1:(_vm.config.analysis.whitelist)},on:{\"change\":[function($event){var $$a=_vm.config.analysis.whitelist,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.config.analysis, \"whitelist\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.config.analysis, \"whitelist\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.config.analysis, \"whitelist\", $$c)}},function($event){return _vm.local_analysis('analysis', 'whitelist')}]}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Use whitelist to prevent false positives. \")]),_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.analysis.active),expression:\"config.analysis.active\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.config.analysis.active)?_vm._i(_vm.config.analysis.active,null)>-1:(_vm.config.analysis.active)},on:{\"change\":[function($event){var $$a=_vm.config.analysis.active,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.config.analysis, \"active\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.config.analysis, \"active\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.config.analysis, \"active\", $$c)}},function($event){return _vm.local_analysis('analysis', 'active')}]}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Use active analysis (Dig, Whois, OpenSSL...). \")]),_c('label',{staticClass:\"form-switch\"},[_c('input',{attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":_vm.config.analysis.indicators_types.includes('all')},on:{\"change\":function($event){return _vm.switch_iocs_types('all')}}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Detect threats by using all IOCs. \")])]),(!_vm.config.analysis.indicators_types.includes('all'))?_c('div',{staticClass:\"form-group\"},[_c('h5',{staticClass:\"s-subtitle\"},[_vm._v(\"IOCs categories\")]),_vm._l((_vm.iocs_tags),function(tag){return _c('label',{key:tag,staticClass:\"form-switch\"},[_c('input',{attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":_vm.config.analysis.indicators_types.includes(tag)},on:{\"change\":function($event){return _vm.switch_iocs_types(tag)}}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Use IOCs related to \"+_vm._s(tag.toUpperCase())+\" threat. \")])})],2):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"backend-content\" id=\"content\">\r\n <div v-bind:class=\"{ 'alert-toaster-visible' : toaster.show, 'alert-toaster-hidden' : !toaster.show }\">{{toaster.message}}</div>\r\n <div class=\"column col-8 col-xs-12\">\r\n <h3 class=\"s-title\">Detection engine configuration</h3>\r\n <h5 class=\"s-subtitle\">Detection methods</h5>\r\n <div class=\"form-group\">\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"local_analysis('analysis', 'heuristics')\" v-model=\"config.analysis.heuristics\">\r\n <i class=\"form-icon\"></i> Use heuristic detection for suspect behaviour.\r\n </label>\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"local_analysis('analysis', 'iocs')\" v-model=\"config.analysis.iocs\">\r\n <i class=\"form-icon\"></i> Use Indicator of Compromise (IoC) based detection.\r\n </label>\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"local_analysis('analysis', 'whitelist')\" v-model=\"config.analysis.whitelist\">\r\n <i class=\"form-icon\"></i> Use whitelist to prevent false positives.\r\n </label>\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"local_analysis('analysis', 'active')\" v-model=\"config.analysis.active\">\r\n <i class=\"form-icon\"></i> Use active analysis (Dig, Whois, OpenSSL...).\r\n </label>\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"switch_iocs_types('all')\" :checked=\"config.analysis.indicators_types.includes('all')\">\r\n <i class=\"form-icon\"></i> Detect threats by using all IOCs.\r\n </label>\r\n </div>\r\n <div class=\"form-group\" v-if=\"!config.analysis.indicators_types.includes('all')\">\r\n <h5 class=\"s-subtitle\">IOCs categories</h5>\r\n <label class=\"form-switch\" v-for=\"tag in iocs_tags\" :key=\"tag\">\r\n <input type=\"checkbox\" @change=\"switch_iocs_types(tag)\" :checked=\"config.analysis.indicators_types.includes(tag)\">\r\n <i class=\"form-icon\"></i> Use IOCs related to {{ tag.toUpperCase() }} threat.\r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport axios from 'axios'\r\n\r\nexport default {\r\n name: 'analysis-engine',\r\n data() {\r\n return {\r\n config: {},\r\n check_certificate: false,\r\n certificate: \"\",\r\n iocs_tags: [],\r\n toaster: { show: false, message : \"\", type : null }\r\n }\r\n },\r\n props: {},\r\n methods: {\r\n switch_config: function(cat, key) {\r\n axios.get(`/api/config/switch/${cat}/${key}`, {\r\n timeout: 10000,\r\n headers: { 'X-Token': this.jwt }\r\n }).then(response => {\r\n if (response.data.status) {\r\n if (response.data.message == \"Key switched to true\") {\r\n this.toaster = { show : true, message : \"Configuration updated\", type : \"success\" }\r\n setTimeout(function () { this.toaster = { show : false } }.bind(this), 1000)\r\n this.config[cat][key] = true\r\n } else if (response.data.message == \"Key switched to false\") {\r\n this.toaster = { show : true, message : \"Configuration updated\", type : \"success\" }\r\n setTimeout(function () { this.toaster = { show : false } }.bind(this), 1000)\r\n this.config[cat][key] = false\r\n } else {\r\n this.toaster = { show : true, message : \"The key doesn't exist\", type : \"error\" }\r\n setTimeout(function () { this.toaster = { show : false } }.bind(this), 1000)\r\n }\r\n }\r\n })\r\n .catch(err => (console.log(err)))\r\n },\r\n local_analysis: function(cat, key) {\r\n this.switch_config(cat, key);\r\n if (this.config.analysis.remote != false)\r\n this.switch_config(\"analysis\", \"remote\");\r\n },\r\n load_config: function() {\r\n axios.get(`/api/config/list`, {\r\n timeout: 10000,\r\n headers: { 'X-Token': this.jwt }\r\n }).then(response => {\r\n if (response.data) {\r\n this.config = response.data\r\n this.config.backend.password = \"\"\r\n console.log(this.config.analysis.indicators_types);\r\n }\r\n })\r\n .catch(err => (console.log(err)))\r\n },\r\n async get_jwt() {\r\n await axios.get(`/api/get-token`, { timeout: 10000 })\r\n .then(response => {\r\n if (response.data.token) {\r\n this.jwt = response.data.token\r\n }\r\n })\r\n .catch(err => (console.log(err)))\r\n },\r\n get_iocs_tags: function() {\r\n axios.get(`/api/ioc/get/tags`, { \r\n timeout: 10000, \r\n headers: {'X-Token': this.jwt} \r\n })\r\n .then(response => {\r\n if(response.data.tags) this.iocs_tags = response.data.tags\r\n })\r\n .catch(err => (console.log(err)));\r\n },\r\n switch_iocs_types: function(tag) {\r\n if (this.config.analysis.indicators_types.includes(tag)){\r\n axios.get(`/api/config/ioc-type/delete/${tag}`, {\r\n timeout: 10000,\r\n headers: { 'X-Token': this.jwt }\r\n }).then(response => {\r\n if (response.data.status) { this.load_config(); }\r\n })\r\n .catch(err => (console.log(err)))\r\n } else {\r\n axios.get(`/api/config/ioc-type/add/${tag}`, {\r\n timeout: 10000,\r\n headers: { 'X-Token': this.jwt }\r\n }).then(response => {\r\n if (response.data.status) { this.load_config(); }\r\n })\r\n .catch(err => (console.log(err)))\r\n this.load_config();\r\n }\r\n }\r\n },\r\n created: function() {\r\n this.get_jwt().then(() => {\r\n this.load_config();\r\n this.get_iocs_tags();\r\n });\r\n }\r\n}\r\n</script>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./analysis-engine.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./analysis-engine.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./analysis-engine.vue?vue&type=template&id=53a9fe9e&\"\nimport script from \"./analysis-engine.vue?vue&type=script&lang=js&\"\nexport * from \"./analysis-engine.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}