@sparrowai/sparrow-mcp 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/scripts/mcp-test/mcp-client.js +1 -1
- package/dist/scripts/test-runner/check-failed-tests.js +1 -1
- package/dist/scripts/test-runner/compare-responses.js +1 -1
- package/dist/scripts/test-runner/standalone-test-fixed-header.js +1 -1
- package/dist/scripts/test-runner/standalone-test.js +1 -1
- package/dist/src/config/appConfig.js +1 -1
- package/dist/src/config/constants.js +1 -1
- package/dist/src/controllers/__tests__/analysis.controller.test.js +1 -1
- package/dist/src/controllers/__tests__/sast.controller.test.js +1 -1
- package/dist/src/controllers/__tests__/sca.controller.test.js +1 -1
- package/dist/src/controllers/__tests__/security.controller.test.js +1 -1
- package/dist/src/controllers/__tests__/system.controller.test.js +1 -1
- package/dist/src/controllers/analysis.controller.js +1 -1
- package/dist/src/controllers/sast.controller.js +1 -1
- package/dist/src/controllers/sca.controller.js +1 -1
- package/dist/src/controllers/security.controller.js +1 -1
- package/dist/src/controllers/system.controller.js +1 -1
- package/dist/src/schemas/tool.schemas.js +1 -1
- package/dist/src/server.js +1 -1
- package/dist/src/services/__tests__/checker.service.test.js +1 -1
- package/dist/src/services/__tests__/llm.service.test.js +1 -1
- package/dist/src/services/__tests__/s3.service.test.js +1 -1
- package/dist/src/services/__tests__/sparrow.service.test.js +1 -1
- package/dist/src/services/analysis.service.js +1 -1
- package/dist/src/services/checker.service.js +1 -1
- package/dist/src/services/llm/AnthropicProvider.js +1 -1
- package/dist/src/services/llm/BedrockProvider.js +1 -1
- package/dist/src/services/llm/GeminiProvider.js +1 -1
- package/dist/src/services/llm/LLMFactory.js +1 -1
- package/dist/src/services/llm/LLMProvider.js +1 -1
- package/dist/src/services/llm/OllamaProvider.js +1 -1
- package/dist/src/services/llm/OpenAIProvider.js +1 -1
- package/dist/src/services/llm.service.js +1 -1
- package/dist/src/services/s3.service.js +1 -1
- package/dist/src/services/sparrow.service.js +1 -1
- package/dist/src/types/types.js +1 -1
- package/dist/src/utils/__tests__/crypto.util.test.js +1 -1
- package/dist/src/utils/__tests__/diff.util.test.js +1 -1
- package/dist/src/utils/__tests__/fileManager.test.js +1 -1
- package/dist/src/utils/__tests__/fileManagerSecure.test.js +1 -1
- package/dist/src/utils/__tests__/logger.test.js +1 -1
- package/dist/src/utils/crypto.util.js +1 -1
- package/dist/src/utils/diff.util.js +1 -1
- package/dist/src/utils/fileManager.js +1 -1
- package/dist/src/utils/fileManagerSecure.js +1 -1
- package/dist/src/utils/logger.js +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a19_0x2a8931=a19_0x4432;(function(_0xc54d6e,_0x407c8e){const _0xce5b2=a19_0x4432,_0x33711e=_0xc54d6e();while(!![]){try{const _0xe1b771=-parseInt(_0xce5b2(0x282))/0x1*(parseInt(_0xce5b2(0x1b4))/0x2)+parseInt(_0xce5b2(0x269))/0x3+-parseInt(_0xce5b2(0x1b7))/0x4*(-parseInt(_0xce5b2(0x20e))/0x5)+-parseInt(_0xce5b2(0x204))/0x6*(-parseInt(_0xce5b2(0x212))/0x7)+-parseInt(_0xce5b2(0x2a4))/0x8*(parseInt(_0xce5b2(0x258))/0x9)+parseInt(_0xce5b2(0x24f))/0xa+parseInt(_0xce5b2(0x1e2))/0xb;if(_0xe1b771===_0x407c8e)break;else _0x33711e['push'](_0x33711e['shift']());}catch(_0x522241){_0x33711e['push'](_0x33711e['shift']());}}}(a19_0x15c2,0xe372d));const a19_0x4d79ed=(function(){let _0x50660d=!![];return function(_0x1dd795,_0x242b40){const _0x23cd94=_0x50660d?function(){const _0x5011a6=a19_0x4432;if(_0x242b40){const _0x45e632=_0x242b40[_0x5011a6(0x28d)](_0x1dd795,arguments);return _0x242b40=null,_0x45e632;}}:function(){};return _0x50660d=![],_0x23cd94;};}()),a19_0x572c2e=a19_0x4d79ed(this,function(){const _0x16f061=a19_0x4432;return a19_0x572c2e['toString']()['search']('(((.+)+)+)'+'+$')[_0x16f061(0x23d)]()[_0x16f061(0x218)+'r'](a19_0x572c2e)[_0x16f061(0x26e)](_0x16f061(0x2af)+'+$');});a19_0x572c2e();function a19_0x15c2(){const _0x4fb687=['files','완료되었습니다.','파일\x20업로드\x20실패:','분석이\x20실패했습니다','없습니다.)','5JppYCy','ANALYSIS','FAIL','uploadFile','9989BamYvo','석\x20요청\x20실패:','분석이\x20완료되었습니','get','ysisResult','보안\x20분석\x20시작:\x20','constructo','분석\x20브리핑\x20생성에','PRE_PROCES','분석\x20결과\x20다운로드','cureCodeBr','SCA','파일\x20경로\x20기반\x20분','licenses','folder.zip','spdxId','tCfEQ','안\x20분석\x20요청\x20실패','analysisId',').\x20','분석이\x20진행\x20중입니','한\x20상태입니다.',',\x20High:\x20','다중\x20파일\x20분석\x20요','method','분석이\x20성공적으로\x20','mapSeverit','지:\x20원본\x20','YdtKv','BVbIx','lts','안전한\x20코드\x20생성\x20','derSca','length','석\x20시작:\x20','Risk\x20Level','version','\x20->\x20실제\x20','erInfo','Unknown','parseScaCo','analyzeFol','ities','toString','join','push','ERFuo','SCA\x20분석\x20요청\x20','SCA\x20분석\x20시작:','yFromRisk','개\x20취약점','조회:\x20','analyzeMul','sFromPaths','sion','ders','eventMsgs','generateAn','lysis','HIGH','조회\x20실패:','5827830ENgPgz','tipleFiles','totalVulne','repository','\x20제공되지\x20않았습니','uploadZipF','lowCount','중\x20파일\x20보안\x20분석','summary','45OIfDAH','basename','폴더\x20기반\x20보안\x20분','안전한\x20코드\x20브리핑','generateSe','downloadAn','SUCCESS','key','generateSc','fileName','enrichVuln','완료되지\x20않았습니다','BELPO','MEDIUM','INFO','llmService','isCompleti','5058819kehXYQ','\x20없습니다.','보안\x20분석\x20요청\x20실','지\x20않았습니다.','폴더\x20압축\x20및\x20업로','search','긴급\x20조치\x20필요:\x20','sparrowSer','개\x20중\x20','checkerKey','개\x20취약점\x20(Cri','mponents','completed','폴더\x20기반\x20SCA\x20','코드를\x20생성할\x20수\x20','Checker:\x20','alysisBrie','라이브러리\x20버전\x20업','content','Method:\x20','scription','FmMjT','.\x20result=','료:\x20','analyzeFil','687069uTjFEh','severity','input.zip','생성\x20완료:\x20','\x20(SUCCESS가','cureCode','lGans','cveId','confidence','mediumCoun','omAnalysis','apply','READY','vJknA','name','buildVulne','식별된\x20컴포넌트\x20','IWwqo','분석\x20결과\x20조회:\x20','tical:\x20','Details:\x20','파일\x20경로\x20기반\x20S','checkerSer','url','REwPq','fileConten','전반적\x20보안\x20상태\x20','alysisResu','status','erAsZip','전처리\x20중입니다.','rity','ZIP\x20파일\x20경로가','uploadMult','2777944hPcLQO','폴더\x20경로가\x20제공되','analyzeZip','add','File:\x20','\x20실패:\x20','초기화\x20중입니다.','UNKNOWN','ohhhg','STOP','업데이트\x20검토\x20필요','(((.+)+)+)','score','components','CA\x20분석\x20요청\x20실','matchType','diff','getChecker','\x20생성에\x20실패했습니','CA\x20분석\x20요청\x20완','분석\x20요청\x20실패:','criticalCo','descriptio','error','니다.','risk','분석\x20시작:\x20','설명\x20없음','NcuTp','analysisTy','CMjBY','getAnalysi','분석\x20결과\x20조회\x20실','secureCode','WEwqg','tlsBq','FuKrj','다중\x20파일\x20보안\x20분','Analysis','messages','lineNumber','개\x20파일','getScaAnal','조치\x20권장:\x20보안\x20','rabilities','zipFileNam','\x20실패했습니다.','erabilitie','ile','initialize','auVDB','toUpperCas','분석\x20ID\x20변경\x20감','완료:\x20','개에서\x20취약점\x20발견','eSecurity','\x20외\x20','분석을\x20올바르게\x20완','iXztV','publishedD','File','issues','분석\x20ID:\x20','단일\x20파일\x20SCA\x20','vRvyo','준비\x20중입니다.','4opiiho','사용\x20라이선스:\x20','ZIP\x20파일\x20업로드','3051016tBzuwm','mdeMe','XHVva','failed','SCA\x20분석\x20결과\x20','has','pollAnalys','INIT','number','Cache','Service','KfKtB','ftzdc','result','unt','filePath','HhSku','후처리\x20중입니다.','ifiedDiff','CA\x20분석\x20시작:\x20','requestSca','분석할\x20파일\x20경로가','skippedFol','ipleFiles','CheckerSer','Security','\x20아니므로\x20안전한\x20','mapScaSeve','gygnT','sResults','ZIP\x20파일\x20기반\x20','JLhkE','드\x20실패:\x20','analysisBr','contexts','\x20시작:\x20','vulnerabil','requestId','patchedVer','CRITICAL','분석\x20요청\x20완료:\x20','info','cureCodeFr','2604118TvRNHw','cvssScore','message','vice','sStatus','Uri','from','eSca','ief','filePaths','MZkdt','scaResults','s3Key','requestAna','파일\x20경로\x20기반\x20다','FromPaths','폴더\x20기반\x20분석\x20요','ate','success','Score','COMPLETE','캐시\x20히트:\x20','rabilityDe','fixedVersi','code.java',',\x20Medium:\x20','개\x20파일\x20경로','aReportBri','parseVulne','청\x20완료:\x20','s3Service','slice','Sca','purl','3252utaEgP','LOW','isArray','분석할\x20파일이\x20없습','AzzWV'];a19_0x15c2=function(){return _0x4fb687;};return a19_0x15c2();}import{LLMService}from'./llm.service.js';import{SparrowService}from'./sparrow.service.js';import{S3Service}from'./s3.service.js';import{CheckerService}from'./checker.service.js';import{DiffUtil}from'../utils/diff.util.js';import{logger}from'../utils/logger.js';function a19_0x4432(_0x21c847,_0x5400d2){_0x21c847=_0x21c847-0x184;const _0x1609e6=a19_0x15c2();let _0x572c2e=_0x1609e6[_0x21c847];return _0x572c2e;}import a19_0x121d8b from'path';export class AnalysisService{[a19_0x2a8931(0x267)];[a19_0x2a8931(0x270)+a19_0x2a8931(0x1e5)];['s3Service'];['checkerSer'+a19_0x2a8931(0x1e5)];['scaResults'+a19_0x2a8931(0x1c0)]=new Map();constructor(){const _0x36c520=a19_0x2a8931;this['llmService']=new LLMService(),this[_0x36c520(0x270)+'vice']=new SparrowService(),this[_0x36c520(0x200)]=new S3Service(),this[_0x36c520(0x298)+_0x36c520(0x1e5)]=new CheckerService();}async[a19_0x2a8931(0x1a3)+a19_0x2a8931(0x1cf)+'vice'](){const _0x2e8d57=a19_0x2a8931;await this['checkerSer'+_0x2e8d57(0x1e5)][_0x2e8d57(0x1a3)]();}[a19_0x2a8931(0x2b5)+a19_0x2a8931(0x1c1)](){const _0x116a7b=a19_0x2a8931;return this[_0x116a7b(0x298)+'vice'];}async[a19_0x2a8931(0x281)+a19_0x2a8931(0x1a9)](_0x3e98b2){const _0x198279=a19_0x2a8931,_0x49f7bd={};_0x49f7bd[_0x198279(0x288)]='보안\x20분석\x20요청\x20실'+'패:';const _0x4d4811=_0x49f7bd;try{logger[_0x198279(0x1e0)](_0x198279(0x217)+_0x3e98b2[_0x198279(0x261)]);const _0x2ef625=await this['s3Service']['uploadFile'](_0x3e98b2[_0x198279(0x29b)+'t'],_0x3e98b2[_0x198279(0x261)]);if(!_0x2ef625[_0x198279(0x1f4)])throw new Error(_0x198279(0x20b)+'\x20'+_0x2ef625[_0x198279(0x189)]);const _0x17f1e7={};_0x17f1e7[_0x198279(0x261)]=_0x3e98b2[_0x198279(0x261)],_0x17f1e7[_0x198279(0x29b)+'t']=_0x3e98b2[_0x198279(0x29b)+'t'],_0x17f1e7[_0x198279(0x1ee)]=_0x2ef625[_0x198279(0x25f)];const _0xc3c7f8=_0x17f1e7,_0x59b140=await this[_0x198279(0x270)+'vice'][_0x198279(0x1ef)+_0x198279(0x24c)](_0xc3c7f8);logger[_0x198279(0x1e0)](_0x198279(0x1df)+_0x59b140[_0x198279(0x1dc)]);const _0x4a66f8={};return _0x4a66f8['analysisId']=_0x59b140['analysisId']||_0x59b140[_0x198279(0x1dc)],_0x4a66f8[_0x198279(0x29e)]=_0x59b140[_0x198279(0x29e)],_0x4a66f8;}catch(_0x138e04){logger['error'](_0x4d4811[_0x198279(0x288)],_0x138e04);throw _0x138e04;}}async[a19_0x2a8931(0x191)+a19_0x2a8931(0x1e6)](_0x3da300){const _0x37db77=a19_0x2a8931,_0xf3ce30={};_0xf3ce30[_0x37db77(0x22e)]=function(_0x5274b6,_0x310951){return _0x5274b6===_0x310951;},_0xf3ce30[_0x37db77(0x240)]='POST_PROCE'+'SS',_0xf3ce30[_0x37db77(0x194)]=_0x37db77(0x2aa),_0xf3ce30[_0x37db77(0x264)]=_0x37db77(0x20c)+'.',_0xf3ce30[_0x37db77(0x293)]=_0x37db77(0x226)+'다.';const _0x2d8d4f=_0xf3ce30;try{const _0x147240=await this[_0x37db77(0x270)+_0x37db77(0x1e5)][_0x37db77(0x191)+_0x37db77(0x1e6)](_0x3da300);let _0x14764d=_0x147240['progress'];if(_0x14764d===undefined){const _0x5a52f8=String(_0x147240[_0x37db77(0x29e)])[_0x37db77(0x1a5)+'e']();if(_0x2d8d4f['YdtKv'](_0x5a52f8,_0x37db77(0x1f6)))_0x14764d=0x64;else{if(_0x5a52f8===_0x37db77(0x20f))_0x14764d=undefined;else{if(_0x5a52f8===_0x37db77(0x1be)||_0x2d8d4f[_0x37db77(0x22e)](_0x5a52f8,'READY'))_0x14764d=0x0;else{if(_0x5a52f8===_0x37db77(0x21a)+'S')_0x14764d=0xa;else _0x5a52f8===_0x2d8d4f[_0x37db77(0x240)]&&(_0x14764d=0x5a);}}}}const _0x23f6ac=String(_0x147240[_0x37db77(0x29e)])['toUpperCas'+'e']();let _0xec03ee;if(_0x23f6ac===_0x37db77(0x1f6)){const _0x54b34c=_0x147240[_0x37db77(0x1c4)]?String(_0x147240['result'])[_0x37db77(0x1a5)+'e']():undefined;if(_0x54b34c==='SUCCESS')_0xec03ee='분석이\x20성공적으로\x20'+_0x37db77(0x20a);else{if(_0x2d8d4f[_0x37db77(0x22e)](_0x54b34c,'FAIL'))_0xec03ee=_0x37db77(0x1ab)+'료하지\x20못하고\x20실패'+_0x37db77(0x227);else{if(_0x54b34c===_0x37db77(0x2ad))_0xec03ee='중지\x20요청을\x20받아\x20'+'분석이\x20중지된\x20상태'+'입니다.';else{if(_0x37db77(0x1a4)===_0x37db77(0x28f)){if(_0x505414[_0x37db77(0x199)]&&_0x4313cd[_0x37db77(0x206)](_0x4909f6['messages']))for(const _0xd6b251 of _0x208899['messages']){_0xd6b251[_0x37db77(0x1e4)]&&_0x11edee['push'](_0xd6b251[_0x37db77(0x1e4)]);}}else _0xec03ee=_0x37db77(0x214)+'다.';}}}}else{const _0x1e0e19={};_0x1e0e19[_0x37db77(0x1be)]=_0x2d8d4f[_0x37db77(0x194)],_0x1e0e19[_0x37db77(0x28e)]=_0x37db77(0x1b3),_0x1e0e19['PRE_PROCES'+'S']=_0x37db77(0x2a0),_0x1e0e19[_0x37db77(0x20f)]='분석\x20중입니다.',_0x1e0e19['POST_PROCE'+'SS']=_0x37db77(0x1c8),_0x1e0e19[_0x37db77(0x210)]=_0x2d8d4f['BELPO'],_0x1e0e19['FAILED']=_0x37db77(0x20c)+'.';const _0xe04160=_0x1e0e19;_0xec03ee=_0xe04160[_0x23f6ac]||_0x2d8d4f[_0x37db77(0x293)];}let _0x5e931b=_0x147240[_0x37db77(0x29e)];_0x23f6ac===_0x37db77(0x1f6)&&_0x147240[_0x37db77(0x1c4)]&&(_0x5e931b=_0x147240[_0x37db77(0x1c4)]);const _0x44f434={};return _0x44f434[_0x37db77(0x29e)]=_0x5e931b,_0x44f434[_0x37db77(0x1c4)]=_0x147240[_0x37db77(0x1c4)],_0x44f434['progress']=_0x14764d,_0x44f434[_0x37db77(0x1e4)]=_0xec03ee,_0x44f434;}catch(_0x5eccdd){logger['error']('분석\x20상태\x20조회\x20실'+'패:',_0x5eccdd);throw _0x5eccdd;}}async['getAnalysi'+a19_0x2a8931(0x1d4)](_0x56576f){const _0x2ba55f=a19_0x2a8931,_0x456fba={'XHVva':function(_0x69c9a0,_0x271331){return _0x69c9a0(_0x271331);},'mdeMe':_0x2ba55f(0x210),'CMjBY':function(_0x59255b,_0x27c889){return _0x59255b!==_0x27c889;}};try{logger[_0x2ba55f(0x1e0)](_0x2ba55f(0x294)+_0x56576f);const _0x11b04c=await this['sparrowSer'+_0x2ba55f(0x1e5)][_0x2ba55f(0x1bd)+_0x2ba55f(0x268)+'on'](_0x56576f),_0x52e62d=_0x11b04c[_0x2ba55f(0x1c4)]?_0x456fba[_0x2ba55f(0x1b9)](String,_0x11b04c[_0x2ba55f(0x1c4)])[_0x2ba55f(0x1a5)+'e']():undefined;let _0x16e134;_0x52e62d===_0x456fba[_0x2ba55f(0x1b8)]||_0x52e62d===_0x2ba55f(0x2ad)?_0x16e134=_0x2ba55f(0x1ba):_0x16e134=_0x2ba55f(0x275);const _0x2b8d46=_0x11b04c['analysisId']||_0x56576f;_0x456fba[_0x2ba55f(0x190)](_0x2b8d46,_0x56576f)&&logger[_0x2ba55f(0x1e0)](_0x2ba55f(0x1a6)+_0x2ba55f(0x22d)+_0x56576f+_0x2ba55f(0x237)+_0x2b8d46);logger[_0x2ba55f(0x1e0)]('분석\x20결과\x20다운로드'+_0x2ba55f(0x1da)+_0x2b8d46);const _0x3b6d32=await this[_0x2ba55f(0x270)+_0x2ba55f(0x1e5)][_0x2ba55f(0x25d)+_0x2ba55f(0x29d)+_0x2ba55f(0x230)](_0x2b8d46),_0x161980=this[_0x2ba55f(0x1fe)+_0x2ba55f(0x19e)](_0x3b6d32),_0x312744=this['checkerSer'+_0x2ba55f(0x1e5)][_0x2ba55f(0x262)+_0x2ba55f(0x1a1)+'sWithCheck'+_0x2ba55f(0x238)](_0x161980,'ko'),_0x175dc9=await this[_0x2ba55f(0x267)][_0x2ba55f(0x24b)+_0x2ba55f(0x279)+'f'](_0x3b6d32),_0x142d4a=_0x175dc9[_0x2ba55f(0x1f4)]?_0x175dc9[_0x2ba55f(0x27b)]:_0x2ba55f(0x219)+_0x2ba55f(0x1a0);logger[_0x2ba55f(0x1e0)]('분석\x20결과\x20생성\x20완'+_0x2ba55f(0x280)+_0x161980['length']+('개\x20취약점\x20발견\x20('+_0x2ba55f(0x1b0))+_0x2b8d46+')');const _0x57f356={};return _0x57f356[_0x2ba55f(0x224)]=_0x2b8d46,_0x57f356[_0x2ba55f(0x29e)]=_0x16e134,_0x57f356['result']=_0x52e62d,_0x57f356['vulnerabil'+_0x2ba55f(0x23c)]=_0x312744,_0x57f356[_0x2ba55f(0x1d8)+_0x2ba55f(0x1ea)]=_0x142d4a,_0x57f356;}catch(_0x3a45e0){logger[_0x2ba55f(0x189)](_0x2ba55f(0x192)+'패:',_0x3a45e0);throw _0x3a45e0;}}async[a19_0x2a8931(0x25c)+a19_0x2a8931(0x1e1)+a19_0x2a8931(0x28c)](_0x325a3d,_0x5a1e2e){const _0x2dd180=a19_0x2a8931,_0x53cf15={'gygnT':function(_0x15cbe1,_0x4ff56f){return _0x15cbe1(_0x4ff56f);}};try{logger[_0x2dd180(0x1e0)](_0x2dd180(0x231)+'시작:\x20'+_0x325a3d);const _0x15ab5d=await this[_0x2dd180(0x270)+'vice'][_0x2dd180(0x1bd)+_0x2dd180(0x268)+'on'](_0x325a3d),_0x21f683=_0x15ab5d[_0x2dd180(0x1c4)]?_0x53cf15[_0x2dd180(0x1d3)](String,_0x15ab5d[_0x2dd180(0x1c4)])[_0x2dd180(0x1a5)+'e']():undefined;if(_0x21f683&&_0x21f683!==_0x2dd180(0x25e))throw new Error(_0x2dd180(0x22b)+_0x2dd180(0x263)+_0x2dd180(0x27f)+_0x21f683+(_0x2dd180(0x286)+_0x2dd180(0x1d1)+_0x2dd180(0x277)+_0x2dd180(0x20d)));const _0x5f04cf=_0x15ab5d['analysisId']||_0x325a3d;logger['info'](_0x2dd180(0x21b)+'\x20시작:\x20'+_0x5f04cf);const _0x5da35b=await this['sparrowSer'+_0x2dd180(0x1e5)][_0x2dd180(0x25d)+_0x2dd180(0x29d)+'lts'](_0x5f04cf),_0x583472=this['parseVulne'+_0x2dd180(0x19e)](_0x5da35b),_0x59cf47=await this[_0x2dd180(0x267)][_0x2dd180(0x25c)+_0x2dd180(0x287)](_0x5a1e2e,_0x583472),_0x2775b5=_0x59cf47[_0x2dd180(0x1f4)]?_0x59cf47['content']:_0x5a1e2e,_0x30cbad=await this['llmService'][_0x2dd180(0x25c)+_0x2dd180(0x21c)+_0x2dd180(0x1ea)](_0x5a1e2e,_0x2775b5),_0x1fb491=_0x30cbad[_0x2dd180(0x1f4)]?_0x30cbad[_0x2dd180(0x27b)]:_0x2dd180(0x25b)+_0x2dd180(0x184)+'다.',_0x3eb613=DiffUtil['generateUn'+_0x2dd180(0x1c9)](_0x5a1e2e,_0x2775b5,_0x2dd180(0x1fa));logger[_0x2dd180(0x1e0)]('안전한\x20코드\x20생성\x20'+'완료\x20(분석\x20ID:'+'\x20'+_0x5f04cf+')');const _0x4f7976={};return _0x4f7976[_0x2dd180(0x193)]=_0x2775b5,_0x4f7976[_0x2dd180(0x193)+'Brief']=_0x1fb491,_0x4f7976[_0x2dd180(0x2b4)]=_0x3eb613,_0x4f7976;}catch(_0x26ec40){logger[_0x2dd180(0x189)](_0x2dd180(0x231)+'실패:',_0x26ec40);throw _0x26ec40;}}[a19_0x2a8931(0x1fe)+a19_0x2a8931(0x19e)](_0x320822){const _0x15eda2=a19_0x2a8931,_0x682c19=[];for(const _0x97b9b9 of _0x320822){if(Array['isArray'](_0x97b9b9))for(const _0x3b257d of _0x97b9b9){_0x3b257d[_0x15eda2(0x272)]&&_0x682c19['push']({'checkerKey':_0x3b257d[_0x15eda2(0x272)]||_0x15eda2(0x2ab),'description':this[_0x15eda2(0x291)+_0x15eda2(0x1f8)+_0x15eda2(0x27d)](_0x3b257d),'severity':this[_0x15eda2(0x22c)+_0x15eda2(0x243)](_0x3b257d['risk']),'lineNumber':_0x3b257d[_0x15eda2(0x19a)],'filePath':_0x3b257d[_0x15eda2(0x1eb)]&&_0x3b257d['filePaths'][_0x15eda2(0x233)]>0x0?_0x3b257d['filePaths'][0x0]:undefined});}else{if(_0x97b9b9[_0x15eda2(0x1db)+_0x15eda2(0x23c)]&&Array['isArray'](_0x97b9b9[_0x15eda2(0x1db)+_0x15eda2(0x23c)]))for(const _0x3ddf43 of _0x97b9b9[_0x15eda2(0x1db)+_0x15eda2(0x23c)]){_0x682c19['push']({'checkerKey':_0x3ddf43[_0x15eda2(0x272)]||_0x15eda2(0x2ab),'description':_0x3ddf43[_0x15eda2(0x188)+'n']||_0x3ddf43[_0x15eda2(0x1e4)]||_0x15eda2(0x18d),'severity':this['mapSeverit'+'y'](_0x3ddf43[_0x15eda2(0x283)]),'lineNumber':_0x3ddf43[_0x15eda2(0x19a)],'filePath':_0x3ddf43[_0x15eda2(0x1c6)]});}}}return _0x682c19;}['buildVulne'+'rabilityDe'+a19_0x2a8931(0x27d)](_0x263e01){const _0x56b32a=a19_0x2a8931,_0x56333f={};_0x56333f['ohhhg']=_0x56b32a(0x1c2);const _0xf48ced=_0x56333f,_0xed46cf=[];_0x263e01[_0x56b32a(0x272)]&&_0xed46cf[_0x56b32a(0x23f)](_0x56b32a(0x278)+_0x263e01['checkerKey']);_0x263e01[_0x56b32a(0x22a)]&&_0xed46cf['push'](_0x56b32a(0x27c)+_0x263e01[_0x56b32a(0x22a)]);_0x263e01[_0x56b32a(0x1eb)]&&_0x263e01[_0x56b32a(0x1eb)][_0x56b32a(0x233)]>0x0&&_0xed46cf[_0x56b32a(0x23f)](_0x56b32a(0x2a8)+_0x263e01[_0x56b32a(0x1eb)][0x0]);_0x263e01[_0x56b32a(0x19a)]&&_0xed46cf[_0x56b32a(0x23f)]('Line:\x20'+_0x263e01[_0x56b32a(0x19a)]);_0x263e01[_0x56b32a(0x18b)]&&_0xed46cf['push'](_0x56b32a(0x235)+':\x20'+_0x263e01['risk']);if(_0x263e01[_0x56b32a(0x1d9)]&&Array['isArray'](_0x263e01[_0x56b32a(0x1d9)])){const _0x4e1148=[];for(const _0x14d387 of _0x263e01[_0x56b32a(0x1d9)]){if(_0x14d387[_0x56b32a(0x24a)]&&Array[_0x56b32a(0x206)](_0x14d387[_0x56b32a(0x24a)]))for(const _0x1286cb of _0x14d387[_0x56b32a(0x24a)]){if(_0x1286cb['messages']&&Array[_0x56b32a(0x206)](_0x1286cb[_0x56b32a(0x199)])){if(_0xf48ced[_0x56b32a(0x2ac)]===_0x56b32a(0x1c2))for(const _0x5c395c of _0x1286cb[_0x56b32a(0x199)]){_0x5c395c[_0x56b32a(0x1e4)]&&_0x4e1148['push'](_0x5c395c['message']);}else _0x48bdfd=_0x1eb46c;}}}_0x4e1148[_0x56b32a(0x233)]>0x0&&_0xed46cf[_0x56b32a(0x23f)](_0x56b32a(0x296)+_0x4e1148[_0x56b32a(0x23e)](';\x20'));}return _0xed46cf[_0x56b32a(0x233)]>0x0?_0xed46cf[_0x56b32a(0x23e)](',\x20'):'취약점이\x20발견되었습'+_0x56b32a(0x18a);}[a19_0x2a8931(0x22c)+a19_0x2a8931(0x243)](_0x229314){const _0x423758=a19_0x2a8931,_0x38d367={};_0x38d367[_0x423758(0x1c7)]='string';const _0x505745=_0x38d367,_0x461704=typeof _0x229314===_0x505745[_0x423758(0x1c7)]?parseInt(_0x229314):_0x229314;if(_0x461704<=0x2)return _0x423758(0x24d);else return _0x461704===0x3?'MEDIUM':'LOW';}async['analyzeMul'+a19_0x2a8931(0x250)+a19_0x2a8931(0x1d0)](_0x55c36a){const _0x4991a8=a19_0x2a8931;try{logger[_0x4991a8(0x1e0)](_0x4991a8(0x197)+'석\x20시작:\x20'+_0x55c36a[_0x4991a8(0x209)]['length']+_0x4991a8(0x19b));if(!_0x55c36a[_0x4991a8(0x209)]||_0x55c36a['files'][_0x4991a8(0x233)]===0x0)throw new Error(_0x4991a8(0x207)+'니다.');const _0x283997=await this[_0x4991a8(0x200)][_0x4991a8(0x2a3)+_0x4991a8(0x1ce)](_0x55c36a[_0x4991a8(0x209)],_0x55c36a[_0x4991a8(0x19f)+'e']);if(!_0x283997[_0x4991a8(0x1f4)])throw new Error(_0x4991a8(0x20b)+'\x20'+_0x283997[_0x4991a8(0x189)]);const _0x59cb20=_0x55c36a[_0x4991a8(0x209)][0x0]?.[_0x4991a8(0x261)]||_0x4991a8(0x284),_0x43189a={};_0x43189a['fileName']=_0x55c36a[_0x4991a8(0x19f)+'e']||_0x59cb20,_0x43189a[_0x4991a8(0x29b)+'t']='',_0x43189a[_0x4991a8(0x1ee)]=_0x283997[_0x4991a8(0x25f)];const _0x498b42=_0x43189a,_0x4c8297=await this['sparrowSer'+_0x4991a8(0x1e5)][_0x4991a8(0x1ef)+_0x4991a8(0x24c)](_0x498b42);logger[_0x4991a8(0x1e0)](_0x4991a8(0x229)+_0x4991a8(0x1ff)+_0x4c8297[_0x4991a8(0x1dc)]);const _0x15e75a={};return _0x15e75a[_0x4991a8(0x224)]=_0x4c8297[_0x4991a8(0x224)]||_0x4c8297[_0x4991a8(0x1dc)],_0x15e75a[_0x4991a8(0x29e)]=_0x4c8297['status'],_0x15e75a;}catch(_0x7f2436){logger[_0x4991a8(0x189)](_0x4991a8(0x197)+_0x4991a8(0x213),_0x7f2436);throw _0x7f2436;}}async[a19_0x2a8931(0x246)+'tipleFiles'+a19_0x2a8931(0x1f1)](_0x198468,_0x1766a6){const _0x50ce8f=a19_0x2a8931;try{logger['info'](_0x50ce8f(0x1f0)+_0x50ce8f(0x256)+_0x50ce8f(0x1da)+_0x198468[_0x50ce8f(0x233)]+'개\x20파일\x20경로');if(!_0x198468||_0x198468[_0x50ce8f(0x233)]===0x0)throw new Error(_0x50ce8f(0x1cc)+_0x50ce8f(0x26a));const _0x272d89=await this[_0x50ce8f(0x200)][_0x50ce8f(0x211)+_0x50ce8f(0x247)](_0x198468,_0x1766a6);if(!_0x272d89[_0x50ce8f(0x1f4)])throw new Error(_0x50ce8f(0x20b)+'\x20'+_0x272d89['error']);const _0xf050ad=a19_0x121d8b[_0x50ce8f(0x259)](_0x198468[0x0])||_0x50ce8f(0x284),_0x37fda2={};_0x37fda2[_0x50ce8f(0x261)]=_0x1766a6||_0xf050ad,_0x37fda2[_0x50ce8f(0x29b)+'t']='',_0x37fda2[_0x50ce8f(0x1ee)]=_0x272d89[_0x50ce8f(0x25f)];const _0x9b3fd2=_0x37fda2,_0x104b1c=await this[_0x50ce8f(0x270)+_0x50ce8f(0x1e5)]['requestAna'+_0x50ce8f(0x24c)](_0x9b3fd2);logger[_0x50ce8f(0x1e0)](_0x50ce8f(0x21e)+'석\x20요청\x20완료:\x20'+_0x104b1c['requestId']);const _0x13d391={};return _0x13d391['analysisId']=_0x104b1c[_0x50ce8f(0x224)]||_0x104b1c[_0x50ce8f(0x1dc)],_0x13d391[_0x50ce8f(0x29e)]=_0x104b1c[_0x50ce8f(0x29e)],_0x13d391;}catch(_0x386d63){logger[_0x50ce8f(0x189)]('파일\x20경로\x20기반\x20보'+_0x50ce8f(0x223)+':',_0x386d63);throw _0x386d63;}}async['analyzeZip'+a19_0x2a8931(0x1ae)](_0x55aa17,_0x3651e9){const _0x196389=a19_0x2a8931;try{logger['info'](_0x196389(0x1d5)+_0x196389(0x217)+_0x55aa17);if(!_0x55aa17)throw new Error(_0x196389(0x2a2)+'\x20제공되지\x20않았습니'+'다.');const _0x2163f6=await this[_0x196389(0x200)][_0x196389(0x254)+_0x196389(0x1a2)](_0x55aa17);if(!_0x2163f6['success'])throw new Error('ZIP\x20파일\x20업로드'+_0x196389(0x2a9)+_0x2163f6['error']);const _0x54a2df=_0x3651e9||a19_0x121d8b[_0x196389(0x259)](_0x55aa17)||_0x196389(0x284),_0x17aabb={};_0x17aabb[_0x196389(0x261)]=_0x54a2df,_0x17aabb[_0x196389(0x29b)+'t']='',_0x17aabb[_0x196389(0x1ee)]=_0x2163f6[_0x196389(0x25f)];const _0xaa042c=_0x17aabb,_0xa99458=await this[_0x196389(0x270)+_0x196389(0x1e5)][_0x196389(0x1ef)+_0x196389(0x24c)](_0xaa042c);logger[_0x196389(0x1e0)](_0x196389(0x1d5)+_0x196389(0x1df)+_0xa99458[_0x196389(0x1dc)]);const _0x4d41b1={};return _0x4d41b1[_0x196389(0x224)]=_0xa99458[_0x196389(0x224)]||_0xa99458[_0x196389(0x1dc)],_0x4d41b1[_0x196389(0x29e)]=_0xa99458[_0x196389(0x29e)],_0x4d41b1;}catch(_0x111167){logger[_0x196389(0x189)](_0x196389(0x1d5)+_0x196389(0x26b)+'패:',_0x111167);throw _0x111167;}}async[a19_0x2a8931(0x23b)+'der'](_0x457a58,_0xda7849){const _0x356a7a=a19_0x2a8931;try{logger[_0x356a7a(0x1e0)](_0x356a7a(0x25a)+_0x356a7a(0x234)+_0x457a58);if(!_0x457a58)throw new Error(_0x356a7a(0x2a5)+_0x356a7a(0x26c));const _0x2d5603=await this[_0x356a7a(0x200)]['uploadFold'+_0x356a7a(0x29f)](_0x457a58,_0xda7849);if(!_0x2d5603['success'])throw new Error(_0x356a7a(0x26d)+_0x356a7a(0x1d7)+_0x2d5603[_0x356a7a(0x189)]);const _0x46124a=_0xda7849||a19_0x121d8b[_0x356a7a(0x259)](_0x457a58)||_0x356a7a(0x220),_0x1d3d56={};_0x1d3d56[_0x356a7a(0x261)]=_0x46124a,_0x1d3d56[_0x356a7a(0x29b)+'t']='',_0x1d3d56[_0x356a7a(0x1ee)]=_0x2d5603[_0x356a7a(0x25f)];const _0x3b88d8=_0x1d3d56,_0x3f8bab=await this['sparrowSer'+_0x356a7a(0x1e5)][_0x356a7a(0x1ef)+_0x356a7a(0x24c)](_0x3b88d8);logger[_0x356a7a(0x1e0)](_0x356a7a(0x1f2)+_0x356a7a(0x1ff)+_0x3f8bab[_0x356a7a(0x1dc)]);const _0x29892d={};return _0x29892d[_0x356a7a(0x224)]=_0x3f8bab[_0x356a7a(0x224)]||_0x3f8bab[_0x356a7a(0x1dc)],_0x29892d[_0x356a7a(0x29e)]=_0x3f8bab[_0x356a7a(0x29e)],_0x29892d['skippedFol'+_0x356a7a(0x249)]=_0x2d5603[_0x356a7a(0x1cd)+_0x356a7a(0x249)],_0x29892d;}catch(_0x2d07b7){logger[_0x356a7a(0x189)](_0x356a7a(0x25a)+'석\x20요청\x20실패:',_0x2d07b7);throw _0x2d07b7;}}async[a19_0x2a8931(0x281)+a19_0x2a8931(0x1e9)](_0x4ce6f8,_0x5d7dcd){const _0x2a3253=a19_0x2a8931,_0x1c2949={};_0x1c2949[_0x2a3253(0x196)]=function(_0x4f4560,_0xb53de4){return _0x4f4560||_0xb53de4;},_0x1c2949['NcuTp']='단일\x20파일\x20SCA\x20'+'분석\x20요청\x20실패:';const _0x544bfb=_0x1c2949;try{logger['info']('단일\x20파일\x20SCA\x20'+_0x2a3253(0x18c)+_0x4ce6f8);if(!_0x4ce6f8)throw new Error(_0x2a3253(0x1cc)+_0x2a3253(0x26a));const _0x38421e=await this[_0x2a3253(0x200)][_0x2a3253(0x211)+'sFromPaths']([_0x4ce6f8],_0x5d7dcd);if(!_0x38421e[_0x2a3253(0x1f4)])throw new Error(_0x2a3253(0x20b)+'\x20'+_0x38421e[_0x2a3253(0x189)]);const _0x10c447=a19_0x121d8b[_0x2a3253(0x259)](_0x4ce6f8)||_0x2a3253(0x284),_0x5c1a45={'fileName':_0x544bfb[_0x2a3253(0x196)](_0x5d7dcd,_0x10c447),'fileContent':'','s3Key':_0x38421e[_0x2a3253(0x25f)]},_0x2f4de7=await this[_0x2a3253(0x270)+_0x2a3253(0x1e5)][_0x2a3253(0x1cb)+_0x2a3253(0x198)](_0x5c1a45);logger[_0x2a3253(0x1e0)](_0x2a3253(0x1b1)+_0x2a3253(0x1df)+_0x2f4de7[_0x2a3253(0x1dc)]);const _0xbea632={};return _0xbea632[_0x2a3253(0x224)]=_0x2f4de7[_0x2a3253(0x224)]||_0x2f4de7[_0x2a3253(0x1dc)],_0xbea632[_0x2a3253(0x29e)]=_0x2f4de7[_0x2a3253(0x29e)],_0xbea632[_0x2a3253(0x18f)+'pe']='SCA',_0xbea632;}catch(_0x250d3c){logger['error'](_0x544bfb[_0x2a3253(0x18e)],_0x250d3c);throw _0x250d3c;}}async[a19_0x2a8931(0x281)+'esSca'](_0x48bafa,_0x181994){const _0x134916=a19_0x2a8931,_0x25851c={};_0x25851c[_0x134916(0x22f)]=function(_0x34d089,_0x30d71){return _0x34d089||_0x30d71;};const _0x46a030=_0x25851c;try{logger[_0x134916(0x1e0)](_0x134916(0x297)+_0x134916(0x1ca)+_0x48bafa['length']+_0x134916(0x1fc));if(!_0x48bafa||_0x48bafa[_0x134916(0x233)]===0x0)throw new Error('분석할\x20파일\x20경로가'+_0x134916(0x26a));const _0x64cdf8=await this[_0x134916(0x200)][_0x134916(0x211)+'sFromPaths'](_0x48bafa,_0x181994);if(!_0x64cdf8['success'])throw new Error(_0x134916(0x20b)+'\x20'+_0x64cdf8[_0x134916(0x189)]);const _0x3cbc45=a19_0x121d8b[_0x134916(0x259)](_0x48bafa[0x0])||_0x134916(0x284),_0x311808={'fileName':_0x46a030['BVbIx'](_0x181994,_0x3cbc45),'fileContent':'','s3Key':_0x64cdf8[_0x134916(0x25f)]},_0x19fac5=await this[_0x134916(0x270)+_0x134916(0x1e5)][_0x134916(0x1cb)+_0x134916(0x198)](_0x311808);logger[_0x134916(0x1e0)](_0x134916(0x297)+_0x134916(0x185)+'료:\x20'+_0x19fac5[_0x134916(0x1dc)]);const _0x465d1a={};return _0x465d1a['analysisId']=_0x19fac5['analysisId']||_0x19fac5[_0x134916(0x1dc)],_0x465d1a['status']=_0x19fac5['status'],_0x465d1a['analysisTy'+'pe']=_0x134916(0x21d),_0x465d1a;}catch(_0x1156eb){logger['error'](_0x134916(0x297)+_0x134916(0x2b2)+'패:',_0x1156eb);throw _0x1156eb;}}async[a19_0x2a8931(0x23b)+a19_0x2a8931(0x232)](_0x4731d6,_0x19b97d){const _0x410503=a19_0x2a8931,_0x208448={};_0x208448[_0x410503(0x1c3)]='폴더\x20경로가\x20제공되'+_0x410503(0x26c),_0x208448[_0x410503(0x1b2)]=_0x410503(0x220),_0x208448[_0x410503(0x1d6)]=_0x410503(0x222);const _0x4e349e=_0x208448;try{logger[_0x410503(0x1e0)](_0x410503(0x276)+_0x410503(0x18c)+_0x4731d6);if(!_0x4731d6)throw new Error(_0x4e349e[_0x410503(0x1c3)]);const _0x1395d7=await this['s3Service']['uploadFold'+_0x410503(0x29f)](_0x4731d6,_0x19b97d);if(!_0x1395d7[_0x410503(0x1f4)])throw new Error(_0x410503(0x26d)+'드\x20실패:\x20'+_0x1395d7[_0x410503(0x189)]);const _0x389f1a=_0x19b97d||a19_0x121d8b[_0x410503(0x259)](_0x4731d6)||_0x4e349e[_0x410503(0x1b2)],_0x14c5b9={};_0x14c5b9[_0x410503(0x261)]=_0x389f1a,_0x14c5b9[_0x410503(0x29b)+'t']='',_0x14c5b9[_0x410503(0x1ee)]=_0x1395d7[_0x410503(0x25f)];const _0x49f60c=_0x14c5b9,_0x222d36=await this[_0x410503(0x270)+_0x410503(0x1e5)][_0x410503(0x1cb)+_0x410503(0x198)](_0x49f60c);logger[_0x410503(0x1e0)](_0x410503(0x276)+_0x410503(0x1df)+_0x222d36['requestId']);const _0x579c8d={};return _0x579c8d[_0x410503(0x224)]=_0x222d36[_0x410503(0x224)]||_0x222d36[_0x410503(0x1dc)],_0x579c8d['status']=_0x222d36[_0x410503(0x29e)],_0x579c8d[_0x410503(0x18f)+'pe']=_0x410503(0x21d),_0x579c8d['skippedFol'+_0x410503(0x249)]=_0x1395d7[_0x410503(0x1cd)+_0x410503(0x249)],_0x579c8d;}catch(_0x3ebc72){if(_0x410503(0x222)!==_0x4e349e[_0x410503(0x1d6)])for(const _0x4bd0d9 of _0x1d3e62[_0x410503(0x1af)]){_0x33bfcc[_0x410503(0x23f)]({'cveId':_0x4bd0d9[_0x410503(0x289)]||_0x4bd0d9['id']||'Unknown','severity':this['mapScaSeve'+'rity'](_0x4bd0d9[_0x410503(0x283)]||_0x4bd0d9[_0x410503(0x18b)]),'cvssScore':_0x4bd0d9[_0x410503(0x1e3)]||_0x4bd0d9[_0x410503(0x2b0)],'description':_0x4bd0d9[_0x410503(0x188)+'n']||_0x4bd0d9[_0x410503(0x257)],'fixedVersion':_0x4bd0d9[_0x410503(0x1f9)+'on']||_0x4bd0d9[_0x410503(0x1dd)+_0x410503(0x248)]});}else{logger[_0x410503(0x189)](_0x410503(0x276)+_0x410503(0x186),_0x3ebc72);throw _0x3ebc72;}}}async[a19_0x2a8931(0x2a6)+a19_0x2a8931(0x202)](_0x52e0e7,_0x30d9b4){const _0x190b85=a19_0x2a8931;try{logger[_0x190b85(0x1e0)](_0x190b85(0x1d5)+_0x190b85(0x242)+'\x20'+_0x52e0e7);if(!_0x52e0e7)throw new Error(_0x190b85(0x2a2)+_0x190b85(0x253)+'다.');const _0x3d7c80=await this[_0x190b85(0x200)][_0x190b85(0x254)+_0x190b85(0x1a2)](_0x52e0e7);if(!_0x3d7c80['success'])throw new Error(_0x190b85(0x1b6)+_0x190b85(0x2a9)+_0x3d7c80[_0x190b85(0x189)]);const _0x42caa4=_0x30d9b4||a19_0x121d8b[_0x190b85(0x259)](_0x52e0e7)||'input.zip',_0xb24691={};_0xb24691[_0x190b85(0x261)]=_0x42caa4,_0xb24691[_0x190b85(0x29b)+'t']='',_0xb24691[_0x190b85(0x1ee)]=_0x3d7c80[_0x190b85(0x25f)];const _0x5c1642=_0xb24691,_0x52d24c=await this[_0x190b85(0x270)+_0x190b85(0x1e5)][_0x190b85(0x1cb)+_0x190b85(0x198)](_0x5c1642);logger[_0x190b85(0x1e0)](_0x190b85(0x1d5)+_0x190b85(0x241)+_0x190b85(0x1a7)+_0x52d24c[_0x190b85(0x1dc)]);const _0x29d3dd={};return _0x29d3dd[_0x190b85(0x224)]=_0x52d24c[_0x190b85(0x224)]||_0x52d24c['requestId'],_0x29d3dd['status']=_0x52d24c['status'],_0x29d3dd[_0x190b85(0x18f)+'pe']='SCA',_0x29d3dd;}catch(_0x56bebb){logger[_0x190b85(0x189)](_0x190b85(0x1d5)+_0x190b85(0x241)+'실패:',_0x56bebb);throw _0x56bebb;}}[a19_0x2a8931(0x22c)+'y'](_0x2b2dc6){const _0x11226e=a19_0x2a8931,_0x161f7c={};_0x161f7c['HIGH']=_0x11226e(0x24d),_0x161f7c['CRITICAL']=_0x11226e(0x24d),_0x161f7c[_0x11226e(0x265)]=_0x11226e(0x265),_0x161f7c[_0x11226e(0x205)]=_0x11226e(0x205),_0x161f7c[_0x11226e(0x266)]=_0x11226e(0x205);const _0x418981=_0x161f7c;return _0x418981[_0x2b2dc6?.[_0x11226e(0x1a5)+'e']()]||_0x11226e(0x265);}async[a19_0x2a8931(0x19c)+a19_0x2a8931(0x216)+'s'](_0x38f94f){const _0x2da269=a19_0x2a8931,_0x5b51a8={};_0x5b51a8['AzzWV']=function(_0x2fff4f,_0x20844d){return _0x2fff4f===_0x20844d;},_0x5b51a8[_0x2da269(0x27e)]='STOP';const _0x300a8d=_0x5b51a8;try{if(this['scaResults'+_0x2da269(0x1c0)][_0x2da269(0x1bc)](_0x38f94f))return logger['info'](_0x2da269(0x1bb)+_0x2da269(0x1f7)+_0x38f94f),this[_0x2da269(0x1ed)+_0x2da269(0x1c0)][_0x2da269(0x215)](_0x38f94f);logger['info'](_0x2da269(0x1bb)+_0x2da269(0x245)+_0x38f94f);const _0x47db5b=await this['sparrowSer'+_0x2da269(0x1e5)]['pollAnalys'+_0x2da269(0x268)+'on'](_0x38f94f),_0x348bd6=_0x47db5b[_0x2da269(0x1c4)]?String(_0x47db5b[_0x2da269(0x1c4)])[_0x2da269(0x1a5)+'e']():undefined;let _0x2725c2;_0x348bd6===_0x2da269(0x210)||_0x300a8d[_0x2da269(0x208)](_0x348bd6,_0x300a8d[_0x2da269(0x27e)])?_0x2725c2=_0x2da269(0x1ba):_0x2725c2='completed';const _0x494c62=_0x47db5b[_0x2da269(0x224)]||_0x38f94f;logger[_0x2da269(0x1e0)]('SCA\x20분석\x20결과\x20'+'다운로드\x20시작:\x20'+_0x494c62);const _0x2fe77b=await this[_0x2da269(0x270)+_0x2da269(0x1e5)][_0x2da269(0x25d)+_0x2da269(0x29d)+_0x2da269(0x230)](_0x494c62),_0x381779=this[_0x2da269(0x23a)+_0x2da269(0x274)](_0x2fe77b);let _0x3063dc=0x0,_0x189662=0x0,_0x57c171=0x0,_0x1afe7d=0x0;for(const _0x4a8769 of _0x381779){for(const _0x3aa5be of _0x4a8769['issues']){switch(_0x3aa5be[_0x2da269(0x283)]){case _0x2da269(0x1de):_0x3063dc++;break;case'HIGH':_0x189662++;break;case _0x2da269(0x265):_0x57c171++;break;case _0x2da269(0x205):_0x1afe7d++;break;}}}const _0x59f6d7=_0x3063dc+_0x189662+_0x57c171+_0x1afe7d,_0x5d802d=this[_0x2da269(0x260)+'aReportBri'+'ef'](_0x381779,_0x59f6d7,_0x3063dc,_0x189662,_0x57c171,_0x1afe7d),_0x278077={};_0x278077['analysisId']=_0x494c62,_0x278077['status']=_0x2725c2,_0x278077['result']=_0x348bd6,_0x278077[_0x2da269(0x2b1)]=_0x381779,_0x278077[_0x2da269(0x251)+'rabilities']=_0x59f6d7,_0x278077[_0x2da269(0x187)+_0x2da269(0x1c5)]=_0x3063dc,_0x278077['highCount']=_0x189662,_0x278077[_0x2da269(0x28b)+'t']=_0x57c171,_0x278077[_0x2da269(0x255)]=_0x1afe7d,_0x278077['analysisBr'+'ief']=_0x5d802d;const _0x12f106=_0x278077;return this[_0x2da269(0x1ed)+_0x2da269(0x1c0)]['set'](_0x38f94f,_0x12f106),_0x494c62!==_0x38f94f&&this[_0x2da269(0x1ed)+_0x2da269(0x1c0)]['set'](_0x494c62,_0x12f106),logger[_0x2da269(0x1e0)]('SCA\x20분석\x20결과\x20'+_0x2da269(0x285)+_0x381779[_0x2da269(0x233)]+'개\x20컴포넌트,\x20'+_0x59f6d7+_0x2da269(0x244)),_0x12f106;}catch(_0x568bdd){logger[_0x2da269(0x189)](_0x2da269(0x1bb)+_0x2da269(0x24e),_0x568bdd);throw _0x568bdd;}}['parseScaCo'+a19_0x2a8931(0x274)](_0x14ee86){const _0x1c3fbc=a19_0x2a8931,_0x58a960={};_0x58a960[_0x1c3fbc(0x1ec)]=_0x1c3fbc(0x239);const _0x567808=_0x58a960,_0xba036c=[];for(const _0xa411dd of _0x14ee86){if(_0xa411dd[_0x1c3fbc(0x290)]&&_0xa411dd[_0x1c3fbc(0x236)]!==undefined){const _0x1e23b2=[];if(_0xa411dd['licenses']&&Array[_0x1c3fbc(0x206)](_0xa411dd['licenses']))for(const _0x4e5952 of _0xa411dd[_0x1c3fbc(0x21f)]){const _0x5e16a8={};_0x5e16a8[_0x1c3fbc(0x290)]=_0x4e5952[_0x1c3fbc(0x290)]||_0x4e5952[_0x1c3fbc(0x221)]||_0x1c3fbc(0x239),_0x5e16a8['spdxId']=_0x4e5952[_0x1c3fbc(0x221)],_0x5e16a8[_0x1c3fbc(0x299)]=_0x4e5952[_0x1c3fbc(0x299)],_0x1e23b2['push'](_0x5e16a8);}const _0x74ad56=[];if(_0xa411dd[_0x1c3fbc(0x1af)]&&Array[_0x1c3fbc(0x206)](_0xa411dd[_0x1c3fbc(0x1af)]))for(const _0x4f22ad of _0xa411dd[_0x1c3fbc(0x1af)]){_0x74ad56['push']({'cveId':_0x4f22ad[_0x1c3fbc(0x289)]||_0x4f22ad['id']||_0x1c3fbc(0x239),'severity':this[_0x1c3fbc(0x1d2)+'rity'](_0x4f22ad[_0x1c3fbc(0x283)]||_0x4f22ad['risk']),'cvssScore':_0x4f22ad[_0x1c3fbc(0x1e3)]||_0x4f22ad['score'],'description':_0x4f22ad[_0x1c3fbc(0x188)+'n']||_0x4f22ad[_0x1c3fbc(0x257)],'fixedVersion':_0x4f22ad[_0x1c3fbc(0x1f9)+'on']||_0x4f22ad[_0x1c3fbc(0x1dd)+_0x1c3fbc(0x248)]});}const _0x1cfee1={};_0x1cfee1[_0x1c3fbc(0x290)]=_0xa411dd['name'],_0x1cfee1[_0x1c3fbc(0x236)]=_0xa411dd[_0x1c3fbc(0x236)]||_0x567808[_0x1c3fbc(0x1ec)],_0x1cfee1['purl']=_0xa411dd[_0x1c3fbc(0x203)],_0x1cfee1[_0x1c3fbc(0x252)]=_0xa411dd[_0x1c3fbc(0x252)],_0x1cfee1[_0x1c3fbc(0x252)+_0x1c3fbc(0x1e7)]=_0xa411dd[_0x1c3fbc(0x252)+'Uri'],_0x1cfee1[_0x1c3fbc(0x2b3)]=_0xa411dd[_0x1c3fbc(0x2b3)],_0x1cfee1[_0x1c3fbc(0x21f)]=_0x1e23b2,_0x1cfee1[_0x1c3fbc(0x1af)]=_0x74ad56,_0x1cfee1['confidence'+_0x1c3fbc(0x1f5)]=_0xa411dd[_0x1c3fbc(0x28a)+_0x1c3fbc(0x1f5)],_0x1cfee1[_0x1c3fbc(0x1ad)+_0x1c3fbc(0x1f3)]=_0xa411dd[_0x1c3fbc(0x1ad)+_0x1c3fbc(0x1f3)],_0xba036c['push'](_0x1cfee1);}else{if(Array[_0x1c3fbc(0x206)](_0xa411dd))for(const _0x66f302 of _0xa411dd){if(_0x66f302['name']&&_0x66f302[_0x1c3fbc(0x236)]!==undefined){const _0x25273d=[];if(_0x66f302[_0x1c3fbc(0x21f)]&&Array['isArray'](_0x66f302[_0x1c3fbc(0x21f)]))for(const _0x42b6fc of _0x66f302[_0x1c3fbc(0x21f)]){const _0x19710a={};_0x19710a[_0x1c3fbc(0x290)]=_0x42b6fc[_0x1c3fbc(0x290)]||_0x42b6fc[_0x1c3fbc(0x221)]||_0x1c3fbc(0x239),_0x19710a[_0x1c3fbc(0x221)]=_0x42b6fc['spdxId'],_0x19710a[_0x1c3fbc(0x299)]=_0x42b6fc[_0x1c3fbc(0x299)],_0x25273d['push'](_0x19710a);}const _0x5a6322=[];if(_0x66f302[_0x1c3fbc(0x1af)]&&Array['isArray'](_0x66f302['issues']))for(const _0x20c895 of _0x66f302[_0x1c3fbc(0x1af)]){_0x5a6322['push']({'cveId':_0x20c895[_0x1c3fbc(0x289)]||_0x20c895['id']||_0x1c3fbc(0x239),'severity':this[_0x1c3fbc(0x1d2)+_0x1c3fbc(0x2a1)](_0x20c895[_0x1c3fbc(0x283)]||_0x20c895[_0x1c3fbc(0x18b)]),'cvssScore':_0x20c895[_0x1c3fbc(0x1e3)]||_0x20c895[_0x1c3fbc(0x2b0)],'description':_0x20c895[_0x1c3fbc(0x188)+'n']||_0x20c895[_0x1c3fbc(0x257)],'fixedVersion':_0x20c895[_0x1c3fbc(0x1f9)+'on']||_0x20c895[_0x1c3fbc(0x1dd)+_0x1c3fbc(0x248)]});}const _0x2b1b1d={};_0x2b1b1d['name']=_0x66f302[_0x1c3fbc(0x290)],_0x2b1b1d[_0x1c3fbc(0x236)]=_0x66f302['version']||_0x1c3fbc(0x239),_0x2b1b1d[_0x1c3fbc(0x203)]=_0x66f302['purl'],_0x2b1b1d[_0x1c3fbc(0x252)]=_0x66f302[_0x1c3fbc(0x252)],_0x2b1b1d[_0x1c3fbc(0x252)+_0x1c3fbc(0x1e7)]=_0x66f302['repository'+_0x1c3fbc(0x1e7)],_0x2b1b1d[_0x1c3fbc(0x2b3)]=_0x66f302[_0x1c3fbc(0x2b3)],_0x2b1b1d[_0x1c3fbc(0x21f)]=_0x25273d,_0x2b1b1d['issues']=_0x5a6322,_0x2b1b1d['confidence'+_0x1c3fbc(0x1f5)]=_0x66f302[_0x1c3fbc(0x28a)+_0x1c3fbc(0x1f5)],_0x2b1b1d['publishedD'+'ate']=_0x66f302[_0x1c3fbc(0x1ad)+_0x1c3fbc(0x1f3)],_0xba036c[_0x1c3fbc(0x23f)](_0x2b1b1d);}}}}return _0xba036c;}[a19_0x2a8931(0x1d2)+a19_0x2a8931(0x2a1)](_0x287195){const _0x52a9ae=a19_0x2a8931,_0x2394e7={};_0x2394e7[_0x52a9ae(0x29a)]=_0x52a9ae(0x1de),_0x2394e7[_0x52a9ae(0x1ac)]=_0x52a9ae(0x265);const _0x4c9ecf=_0x2394e7;if(typeof _0x287195===_0x52a9ae(0x1bf)){if(_0x287195>=0x9)return'CRITICAL';if(_0x287195>=0x7)return _0x52a9ae(0x24d);if(_0x287195>=0x4)return'MEDIUM';return _0x52a9ae(0x205);}const _0x30083e={};_0x30083e[_0x52a9ae(0x1de)]=_0x4c9ecf[_0x52a9ae(0x29a)],_0x30083e[_0x52a9ae(0x24d)]=_0x52a9ae(0x24d),_0x30083e['MEDIUM']=_0x4c9ecf[_0x52a9ae(0x1ac)],_0x30083e[_0x52a9ae(0x205)]=_0x52a9ae(0x205),_0x30083e[_0x52a9ae(0x266)]='LOW';const _0x36e400=_0x30083e;return _0x36e400[_0x287195?.[_0x52a9ae(0x1a5)+'e']()]||_0x52a9ae(0x265);}[a19_0x2a8931(0x260)+a19_0x2a8931(0x1fd)+'ef'](_0x59221d,_0x594315,_0x9fdb4f,_0x263866,_0x523f13,_0x1b31d7){const _0x26ada8=a19_0x2a8931,_0x1fcc60={};_0x1fcc60['fvXmg']=_0x26ada8(0x26f)+_0x26ada8(0x27a)+'데이트\x20권장.',_0x1fcc60[_0x26ada8(0x195)]=_0x26ada8(0x29c)+'양호.';const _0x1284f8=_0x1fcc60,_0x39b937=_0x59221d['filter'](_0x202725=>_0x202725[_0x26ada8(0x1af)]['length']>0x0),_0x1f570a=new Set();for(const _0x143be7 of _0x59221d){for(const _0x62d01c of _0x143be7[_0x26ada8(0x21f)]){_0x1f570a[_0x26ada8(0x2a7)](_0x62d01c[_0x26ada8(0x290)]);}}let _0x50747b=_0x26ada8(0x292)+_0x59221d[_0x26ada8(0x233)]+_0x26ada8(0x271)+_0x39b937['length']+(_0x26ada8(0x1a8)+'.\x20');_0x50747b+='총\x20'+_0x594315+(_0x26ada8(0x273)+_0x26ada8(0x295))+_0x9fdb4f+_0x26ada8(0x228)+_0x263866+_0x26ada8(0x1fb)+_0x523f13+',\x20Low:\x20'+_0x1b31d7+_0x26ada8(0x225);_0x1f570a['size']>0x0&&(_0x50747b+=_0x26ada8(0x1b5)+Array[_0x26ada8(0x1e8)](_0x1f570a)[_0x26ada8(0x201)](0x0,0x5)[_0x26ada8(0x23e)](',\x20')+(_0x1f570a['size']>0x5?_0x26ada8(0x1aa)+(_0x1f570a['size']-0x5)+'개':'')+'.\x20');if(_0x9fdb4f>0x0||_0x263866>0x0)_0x50747b+=_0x1284f8['fvXmg'];else _0x523f13>0x0?_0x50747b+=_0x26ada8(0x19d)+_0x26ada8(0x2ae)+'.':_0x50747b+=_0x1284f8[_0x26ada8(0x195)];return _0x50747b;}}
|
|
1
|
+
const a19_0x4e6b7b=a19_0x95ad;function a19_0x4805(){const _0x20ef7b=['파일\x20경로\x20기반\x20분','uploadZipF','generateAn','개\x20컴포넌트,\x20','ptjfT','analysisBr','folder.zip','폴더\x20기반\x20SCA\x20','전처리\x20중입니다.','폴더\x20경로가\x20제공되','석\x20시작:\x20','사용\x20라이선스:\x20','result','분석\x20결과\x20조회:\x20','add','lowCount','dutyL','309594YLcLRT','code.java','rabilities','분석\x20상태\x20조회\x20실','lineNumber','parseVulne','mponents','confidence','Unknown','filePath','eSca','준비\x20중입니다.','입니다.','from','조치\x20권장:\x20보안\x20','sparrowSer','\x20->\x20실제\x20','분석이\x20실패했습니다','name','폴더\x20압축\x20및\x20업로','폴더\x20기반\x20분석\x20요','isCompleti','지\x20않았습니다.','Score','alysisBrie','ucRYw','message','dUDCP','tipleFiles','ile','180ojTdWn','vulnerabil','join','eSecurity','ders','DfggM','ZIP\x20파일\x20업로드','analyzeMul','s3Key','안전한\x20코드\x20브리핑','INIT','FromPaths','mapScaSeve','ANALYSIS','개\x20파일\x20경로','료:\x20','kpoCr','cvssScore','완료\x20(분석\x20ID:','mgBkC','omAnalysis','개\x20취약점','buildVulne','rity','getChecker','전반적\x20보안\x20상태\x20','다운로드\x20시작:\x20','COMPLETE','fileConten','분석\x20중입니다.','unt','지:\x20원본\x20','number','JYgRz','publishedD','YcjeZ','issues','파일\x20업로드\x20실패:','NgqQy','filter','DzsXG','messages','llmService','analyzeZip','단일\x20파일\x20SCA\x20','repository','size','uploadFile','downloadAn','폴더\x20기반\x20보안\x20분','없습니다.)','Uri','initialize','Cache','lOXms','vice','spdxId','analyzeFil','Hzvxy','score','Details:\x20','getAnalysi','(((.+)+)+)','rabilityDe','matchType','니다.','toUpperCas','risk','51092fLwmgG','input.zip','basename','files','석\x20요청\x20완료:\x20','completed','version','esSca','ief','53520TEbzUp','derSca','totalVulne','분석\x20요청\x20완료:\x20','STOP','set','중지\x20요청을\x20받아\x20','UNKNOWN','\x20실패:\x20','checkerSer','SCA\x20분석\x20시작:','MEDIUM','ities','드\x20실패:\x20','File','sion','료하지\x20못하고\x20실패','enrichVuln','CA\x20분석\x20시작:\x20','severity','generateSc','업데이트\x20검토\x20필요','checkerKey','aYvyT','개\x20중\x20','Risk\x20Level','sStatus','scaResults',',\x20Low:\x20','HoUGD','\x20(SUCCESS가','CRITICAL','analysisId','HIGH','\x20제공되지\x20않았습니','contexts','progress','PRE_PROCES','\x20아니므로\x20안전한\x20','Analysis','sResults','toString','method','SCA\x20분석\x20결과\x20','캐시\x20히트:\x20','parseScaCo','isArray','IIdbJ','highCount','파일\x20경로\x20기반\x20보','중\x20파일\x20보안\x20분석','error','requestId','summary','scription','string','mediumCoun','.\x20result=','cureCodeFr','pollAnalys','secureCode','Checker:\x20','requestSca','SCA','분석할\x20파일이\x20없습','파일\x20경로\x20기반\x20S','생성\x20완료:\x20','failed','석\x20요청\x20실패:','파일\x20경로\x20기반\x20다','cureCode','sWithCheck','170deXUqH','849231DqfXPZ','분석\x20ID:\x20','slice','분석할\x20파일\x20경로가','push','lts','다중\x20파일\x20보안\x20분','안전한\x20코드\x20생성\x20','fileName','info','alysisResu','LOW','s3Service','ZIP\x20파일\x20기반\x20','READY','skippedFol','105024kJxzbo','\x20시작:\x20','status','2OUUSuo','258573MyubfB','FAIL','\x20실패했습니다.','보안\x20분석\x20요청\x20실','분석\x20브리핑\x20생성에','분석이\x20진행\x20중입니','DeMto','분석\x20결과\x20다운로드','criticalCo','16ZOegzO','INFO','초기화\x20중입니다.','der','ZSYQP','DZvpa','analyzeFol','success','안\x20분석\x20요청\x20실패','length','분석이\x20성공적으로\x20','다중\x20파일\x20분석\x20요','getScaAnal','실패:','generateUn','cveId','yFromRisk','sFromPaths',').\x20','설명\x20없음','분석\x20요청\x20실패:','licenses','erabilitie','ZIP\x20파일\x20경로가','aReportBri','\x20없습니다.','보안\x20분석\x20시작:\x20','erAsZip','423885AETZHE','코드를\x20생성할\x20수\x20','ate','mapSeverit','lysis','ipleFiles','ysisResult','cRWix','취약점이\x20발견되었습','content','조회\x20실패:','purl','analysisTy','조회:\x20','patchedVer','라이브러리\x20버전\x20업','url','descriptio','POST_PROCE','긴급\x20조치\x20필요:\x20','SCA\x20분석\x20요청\x20','uploadFold','key','개\x20취약점\x20(Cri','\x20외\x20','requestAna','generateSe','filePaths','eventMsgs','분석\x20시작:\x20','분석\x20ID\x20변경\x20감','청\x20완료:\x20','zipFileNam'];a19_0x4805=function(){return _0x20ef7b;};return a19_0x4805();}(function(_0x4297be,_0x4a24f5){const _0x25ee43=a19_0x95ad,_0x1ff97=_0x4297be();while(!![]){try{const _0x414d27=-parseInt(_0x25ee43(0x18b))/0x1*(parseInt(_0x25ee43(0x133))/0x2)+parseInt(_0x25ee43(0x130))/0x3+parseInt(_0x25ee43(0xce))/0x4+parseInt(_0x25ee43(0x1a9))/0x5*(-parseInt(_0x25ee43(0xd7))/0x6)+parseInt(_0x25ee43(0x134))/0x7*(parseInt(_0x25ee43(0x13d))/0x8)+parseInt(_0x25ee43(0x120))/0x9+parseInt(_0x25ee43(0x11f))/0xa*(parseInt(_0x25ee43(0x159))/0xb);if(_0x414d27===_0x4a24f5)break;else _0x1ff97['push'](_0x1ff97['shift']());}catch(_0x40ff8c){_0x1ff97['push'](_0x1ff97['shift']());}}}(a19_0x4805,0x3ab0f));const a19_0x997d44=(function(){const _0x4b2c5a=a19_0x95ad,_0x5518cb={};_0x5518cb['DzsXG']=_0x4b2c5a(0x1ae);const _0xcde107=_0x5518cb;let _0x335b07=!![];return function(_0x40086a,_0x3338c5){const _0x31670e=_0x4b2c5a;if('DfggM'!==_0xcde107[_0x31670e(0x1d1)])_0x2e2ddd='분석을\x20올바르게\x20완'+_0x31670e(0xe7)+'한\x20상태입니다.';else{const _0x6cd2e0=_0x335b07?function(){if(_0x3338c5){const _0x435fcc=_0x3338c5['apply'](_0x40086a,arguments);return _0x3338c5=null,_0x435fcc;}}:function(){};return _0x335b07=![],_0x6cd2e0;}};}()),a19_0x4968ec=a19_0x997d44(this,function(){const _0x4036b8=a19_0x95ad;return a19_0x4968ec[_0x4036b8(0x100)]()['search'](_0x4036b8(0xc8)+'+$')['toString']()['constructo'+'r'](a19_0x4968ec)['search'](_0x4036b8(0xc8)+'+$');});function a19_0x95ad(_0xa897b,_0x3fb663){_0xa897b=_0xa897b-0xc7;const _0x19b490=a19_0x4805();let _0x4968ec=_0x19b490[_0xa897b];return _0x4968ec;}a19_0x4968ec();import{LLMService}from'./llm.service.js';import{SparrowService}from'./sparrow.service.js';import{S3Service}from'./s3.service.js';import{CheckerService}from'./checker.service.js';import{DiffUtil}from'../utils/diff.util.js';import{logger}from'../utils/logger.js';import a19_0x4b663a from'path';export class AnalysisService{[a19_0x4e6b7b(0x1d3)];['sparrowSer'+a19_0x4e6b7b(0x1e0)];[a19_0x4e6b7b(0x12c)];[a19_0x4e6b7b(0xe0)+a19_0x4e6b7b(0x1e0)];[a19_0x4e6b7b(0xf2)+a19_0x4e6b7b(0x1de)]=new Map();constructor(){const _0x4010c8=a19_0x4e6b7b;this[_0x4010c8(0x1d3)]=new LLMService(),this[_0x4010c8(0x19a)+_0x4010c8(0x1e0)]=new SparrowService(),this['s3Service']=new S3Service(),this[_0x4010c8(0xe0)+'vice']=new CheckerService();}async['initialize'+'CheckerSer'+a19_0x4e6b7b(0x1e0)](){const _0x30c9e4=a19_0x4e6b7b;await this[_0x30c9e4(0xe0)+_0x30c9e4(0x1e0)][_0x30c9e4(0x1dd)]();}[a19_0x4e6b7b(0x1c1)+'Service'](){const _0x249ee7=a19_0x4e6b7b;return this[_0x249ee7(0xe0)+_0x249ee7(0x1e0)];}async[a19_0x4e6b7b(0x1e2)+a19_0x4e6b7b(0x1ac)](_0x456ae0){const _0x423129=a19_0x4e6b7b;try{logger['info'](_0x423129(0x157)+_0x456ae0[_0x423129(0x128)]);const _0x13b7f9=await this[_0x423129(0x12c)]['uploadFile'](_0x456ae0[_0x423129(0x1c5)+'t'],_0x456ae0[_0x423129(0x128)]);if(!_0x13b7f9[_0x423129(0x144)])throw new Error(_0x423129(0x1ce)+'\x20'+_0x13b7f9[_0x423129(0x10a)]);const _0x544604={};_0x544604[_0x423129(0x128)]=_0x456ae0[_0x423129(0x128)],_0x544604[_0x423129(0x1c5)+'t']=_0x456ae0[_0x423129(0x1c5)+'t'],_0x544604[_0x423129(0x1b1)]=_0x13b7f9[_0x423129(0x16f)];const _0x506238=_0x544604,_0x4f3410=await this[_0x423129(0x19a)+_0x423129(0x1e0)][_0x423129(0x172)+_0x423129(0x15d)](_0x506238);logger[_0x423129(0x129)](_0x423129(0xda)+_0x4f3410[_0x423129(0x10b)]);const _0x4bcde6={};return _0x4bcde6[_0x423129(0xf7)]=_0x4f3410[_0x423129(0xf7)]||_0x4f3410['requestId'],_0x4bcde6[_0x423129(0x132)]=_0x4f3410['status'],_0x4bcde6;}catch(_0x3510b6){logger['error']('보안\x20분석\x20요청\x20실'+'패:',_0x3510b6);throw _0x3510b6;}}async['getAnalysi'+a19_0x4e6b7b(0xf1)](_0x4aea19){const _0x409208=a19_0x4e6b7b,_0x26da01={'Hzvxy':_0x409208(0x1c4),'ptjfT':function(_0x1894be,_0x36e1c3){return _0x1894be(_0x36e1c3);},'ZSYQP':function(_0x3bed7f,_0xe4af6a){return _0x3bed7f===_0xe4af6a;},'dutyL':_0x409208(0xdd)+'분석이\x20중지된\x20상태'+_0x409208(0x197),'HoUGD':_0x409208(0x1c6)};try{const _0x1b5a3b=await this[_0x409208(0x19a)+'vice']['getAnalysi'+_0x409208(0xf1)](_0x4aea19);let _0x17a7a4=_0x1b5a3b['progress'];if(_0x17a7a4===undefined){const _0x4bc01f=String(_0x1b5a3b['status'])[_0x409208(0xcc)+'e']();if(_0x4bc01f===_0x26da01['Hzvxy'])_0x17a7a4=0x64;else{if(_0x4bc01f===_0x409208(0x1b6))_0x17a7a4=undefined;else{if(_0x4bc01f===_0x409208(0x1b3)||_0x4bc01f===_0x409208(0x12e))_0x17a7a4=0x0;else{if(_0x4bc01f===_0x409208(0xfc)+'S')_0x17a7a4=0xa;else _0x4bc01f===_0x409208(0x16b)+'SS'&&(_0x17a7a4=0x5a);}}}}const _0x22c391=_0x26da01[_0x409208(0x17e)](String,_0x1b5a3b[_0x409208(0x132)])['toUpperCas'+'e']();let _0x410026;if(_0x26da01[_0x409208(0x141)](_0x22c391,_0x409208(0x1c4))){const _0x58db2e=_0x1b5a3b[_0x409208(0x186)]?String(_0x1b5a3b[_0x409208(0x186)])[_0x409208(0xcc)+'e']():undefined;if(_0x58db2e==='SUCCESS')_0x410026=_0x409208(0x147)+'완료되었습니다.';else{if(_0x58db2e===_0x409208(0x135))_0x410026='분석을\x20올바르게\x20완'+'료하지\x20못하고\x20실패'+'한\x20상태입니다.';else _0x58db2e==='STOP'?_0x410026=_0x26da01[_0x409208(0x18a)]:_0x410026='분석이\x20완료되었습니'+'다.';}}else{const _0x5799c2={};_0x5799c2[_0x409208(0x1b3)]=_0x409208(0x13f),_0x5799c2[_0x409208(0x12e)]=_0x409208(0x196),_0x5799c2['PRE_PROCES'+'S']=_0x409208(0x182),_0x5799c2[_0x409208(0x1b6)]=_0x26da01[_0x409208(0xf4)],_0x5799c2[_0x409208(0x16b)+'SS']='후처리\x20중입니다.',_0x5799c2[_0x409208(0x135)]=_0x409208(0x19c)+'.',_0x5799c2['FAILED']='분석이\x20실패했습니다'+'.';const _0x33c0f5=_0x5799c2;_0x410026=_0x33c0f5[_0x22c391]||_0x409208(0x139)+'다.';}let _0x563925=_0x1b5a3b[_0x409208(0x132)];_0x22c391===_0x26da01[_0x409208(0x1e3)]&&_0x1b5a3b[_0x409208(0x186)]&&(_0x563925=_0x1b5a3b[_0x409208(0x186)]);const _0x3d3025={};return _0x3d3025[_0x409208(0x132)]=_0x563925,_0x3d3025[_0x409208(0x186)]=_0x1b5a3b['result'],_0x3d3025[_0x409208(0xfb)]=_0x17a7a4,_0x3d3025[_0x409208(0x1a5)]=_0x410026,_0x3d3025;}catch(_0x36d93b){logger[_0x409208(0x10a)](_0x409208(0x18e)+'패:',_0x36d93b);throw _0x36d93b;}}async[a19_0x4e6b7b(0xc7)+a19_0x4e6b7b(0xff)](_0x576e19){const _0x2b9d6f=a19_0x4e6b7b,_0x329fb0={};_0x329fb0[_0x2b9d6f(0x1a6)]=function(_0x48f20e,_0x43c29f){return _0x48f20e!==_0x43c29f;};const _0x29d816=_0x329fb0;try{logger[_0x2b9d6f(0x129)](_0x2b9d6f(0x187)+_0x576e19);const _0x4e9376=await this[_0x2b9d6f(0x19a)+_0x2b9d6f(0x1e0)][_0x2b9d6f(0x112)+_0x2b9d6f(0x1a0)+'on'](_0x576e19),_0x506b05=_0x4e9376[_0x2b9d6f(0x186)]?String(_0x4e9376['result'])['toUpperCas'+'e']():undefined;let _0x1bf6af;_0x506b05===_0x2b9d6f(0x135)||_0x506b05==='STOP'?_0x1bf6af=_0x2b9d6f(0x11a):_0x1bf6af=_0x2b9d6f(0xd3);const _0x111520=_0x4e9376[_0x2b9d6f(0xf7)]||_0x576e19;_0x29d816[_0x2b9d6f(0x1a6)](_0x111520,_0x576e19)&&logger[_0x2b9d6f(0x129)](_0x2b9d6f(0x177)+_0x2b9d6f(0x1c8)+_0x576e19+_0x2b9d6f(0x19b)+_0x111520);logger['info'](_0x2b9d6f(0x13b)+_0x2b9d6f(0x131)+_0x111520);const _0xaa41ab=await this[_0x2b9d6f(0x19a)+'vice'][_0x2b9d6f(0x1d9)+_0x2b9d6f(0x12a)+_0x2b9d6f(0x125)](_0x111520),_0x280385=this[_0x2b9d6f(0x190)+'rabilities'](_0xaa41ab),_0x2ffb87=this[_0x2b9d6f(0xe0)+_0x2b9d6f(0x1e0)][_0x2b9d6f(0xe8)+_0x2b9d6f(0x153)+_0x2b9d6f(0x11e)+'erInfo'](_0x280385,'ko'),_0x54cf82=await this[_0x2b9d6f(0x1d3)][_0x2b9d6f(0x17c)+_0x2b9d6f(0x1a3)+'f'](_0xaa41ab),_0x4af73a=_0x54cf82[_0x2b9d6f(0x144)]?_0x54cf82[_0x2b9d6f(0x162)]:_0x2b9d6f(0x138)+_0x2b9d6f(0x136);logger[_0x2b9d6f(0x129)]('분석\x20결과\x20생성\x20완'+'료:\x20'+_0x280385[_0x2b9d6f(0x146)]+('개\x20취약점\x20발견\x20('+_0x2b9d6f(0x121))+_0x111520+')');const _0x2ccbfe={};return _0x2ccbfe[_0x2b9d6f(0xf7)]=_0x111520,_0x2ccbfe['status']=_0x1bf6af,_0x2ccbfe[_0x2b9d6f(0x186)]=_0x506b05,_0x2ccbfe[_0x2b9d6f(0x1aa)+'ities']=_0x2ffb87,_0x2ccbfe[_0x2b9d6f(0x17f)+_0x2b9d6f(0xd6)]=_0x4af73a,_0x2ccbfe;}catch(_0x44dc41){logger[_0x2b9d6f(0x10a)]('분석\x20결과\x20조회\x20실'+'패:',_0x44dc41);throw _0x44dc41;}}async[a19_0x4e6b7b(0x173)+a19_0x4e6b7b(0x111)+a19_0x4e6b7b(0x1bd)](_0x3f2fad,_0x118a0e){const _0x5f291d=a19_0x4e6b7b,_0x5c4c0e={};_0x5c4c0e[_0x5f291d(0x1b9)]=_0x5f291d(0x1b2)+'\x20생성에\x20실패했습니'+'다.';const _0x17878c=_0x5c4c0e;try{logger[_0x5f291d(0x129)](_0x5f291d(0x127)+'시작:\x20'+_0x3f2fad);const _0x454d18=await this[_0x5f291d(0x19a)+_0x5f291d(0x1e0)][_0x5f291d(0x112)+'isCompleti'+'on'](_0x3f2fad),_0x446413=_0x454d18[_0x5f291d(0x186)]?String(_0x454d18[_0x5f291d(0x186)])[_0x5f291d(0xcc)+'e']():undefined;if(_0x446413&&_0x446413!=='SUCCESS')throw new Error(_0x5f291d(0x147)+'완료되지\x20않았습니다'+_0x5f291d(0x110)+_0x446413+(_0x5f291d(0xf5)+_0x5f291d(0xfd)+_0x5f291d(0x15a)+_0x5f291d(0x1db)));const _0x514511=_0x454d18[_0x5f291d(0xf7)]||_0x3f2fad;logger['info'](_0x5f291d(0x13b)+_0x5f291d(0x131)+_0x514511);const _0x8fcb7b=await this['sparrowSer'+'vice'][_0x5f291d(0x1d9)+_0x5f291d(0x12a)+'lts'](_0x514511),_0x3e3cb7=this[_0x5f291d(0x190)+'rabilities'](_0x8fcb7b),_0x1deb45=await this[_0x5f291d(0x1d3)]['generateSe'+_0x5f291d(0x11d)](_0x118a0e,_0x3e3cb7),_0x55cab1=_0x1deb45[_0x5f291d(0x144)]?_0x1deb45[_0x5f291d(0x162)]:_0x118a0e,_0x1d18d4=await this[_0x5f291d(0x1d3)]['generateSe'+'cureCodeBr'+_0x5f291d(0xd6)](_0x118a0e,_0x55cab1),_0x111f5f=_0x1d18d4['success']?_0x1d18d4[_0x5f291d(0x162)]:_0x17878c['kpoCr'],_0x3c0eef=DiffUtil[_0x5f291d(0x14b)+'ifiedDiff'](_0x118a0e,_0x55cab1,_0x5f291d(0x18c));logger[_0x5f291d(0x129)]('안전한\x20코드\x20생성\x20'+_0x5f291d(0x1bb)+'\x20'+_0x514511+')');const _0x44d21b={};return _0x44d21b['secureCode']=_0x55cab1,_0x44d21b[_0x5f291d(0x113)+'Brief']=_0x111f5f,_0x44d21b['diff']=_0x3c0eef,_0x44d21b;}catch(_0x207391){logger[_0x5f291d(0x10a)](_0x5f291d(0x127)+_0x5f291d(0x14a),_0x207391);throw _0x207391;}}[a19_0x4e6b7b(0x190)+a19_0x4e6b7b(0x18d)](_0x59db99){const _0x4f881a=a19_0x4e6b7b,_0x6dfc92={};_0x6dfc92['YcjeZ']='설명\x20없음';const _0x4bb63d=_0x6dfc92,_0x172678=[];for(const _0x210483 of _0x59db99){if(Array[_0x4f881a(0x105)](_0x210483))for(const _0x3c1cd8 of _0x210483){'xXoSq'!=='kalPE'?_0x3c1cd8[_0x4f881a(0xed)]&&_0x172678[_0x4f881a(0x124)]({'checkerKey':_0x3c1cd8[_0x4f881a(0xed)]||'UNKNOWN','description':this[_0x4f881a(0x1bf)+_0x4f881a(0xc9)+_0x4f881a(0x10d)](_0x3c1cd8),'severity':this[_0x4f881a(0x15c)+_0x4f881a(0x14d)](_0x3c1cd8[_0x4f881a(0xcd)]),'lineNumber':_0x3c1cd8[_0x4f881a(0x18f)],'filePath':_0x3c1cd8['filePaths']&&_0x3c1cd8[_0x4f881a(0x174)]['length']>0x0?_0x3c1cd8[_0x4f881a(0x174)][0x0]:undefined}):_0x3388f9[_0x4f881a(0x124)]({'checkerKey':_0x2eea51[_0x4f881a(0xed)]||_0x4f881a(0xde),'description':_0x556b49[_0x4f881a(0x16a)+'n']||_0x28dd8e[_0x4f881a(0x1a5)]||_0x4f881a(0x150),'severity':this[_0x4f881a(0x15c)+'y'](_0x284cc0['severity']),'lineNumber':_0x9ac510[_0x4f881a(0x18f)],'filePath':_0x2c14b2['filePath']});}else{if(_0x210483[_0x4f881a(0x1aa)+_0x4f881a(0xe3)]&&Array[_0x4f881a(0x105)](_0x210483['vulnerabil'+_0x4f881a(0xe3)]))for(const _0x29f710 of _0x210483[_0x4f881a(0x1aa)+_0x4f881a(0xe3)]){_0x172678[_0x4f881a(0x124)]({'checkerKey':_0x29f710['checkerKey']||_0x4f881a(0xde),'description':_0x29f710[_0x4f881a(0x16a)+'n']||_0x29f710[_0x4f881a(0x1a5)]||_0x4bb63d[_0x4f881a(0x1cc)],'severity':this[_0x4f881a(0x15c)+'y'](_0x29f710['severity']),'lineNumber':_0x29f710[_0x4f881a(0x18f)],'filePath':_0x29f710[_0x4f881a(0x194)]});}}}return _0x172678;}[a19_0x4e6b7b(0x1bf)+a19_0x4e6b7b(0xc9)+a19_0x4e6b7b(0x10d)](_0x3bb5e6){const _0x1e8839=a19_0x4e6b7b,_0x2f9d9b=[];_0x3bb5e6[_0x1e8839(0xed)]&&_0x2f9d9b[_0x1e8839(0x124)](_0x1e8839(0x114)+_0x3bb5e6[_0x1e8839(0xed)]);_0x3bb5e6[_0x1e8839(0x101)]&&_0x2f9d9b[_0x1e8839(0x124)]('Method:\x20'+_0x3bb5e6[_0x1e8839(0x101)]);_0x3bb5e6['filePaths']&&_0x3bb5e6[_0x1e8839(0x174)][_0x1e8839(0x146)]>0x0&&_0x2f9d9b[_0x1e8839(0x124)]('File:\x20'+_0x3bb5e6['filePaths'][0x0]);_0x3bb5e6['lineNumber']&&_0x2f9d9b[_0x1e8839(0x124)]('Line:\x20'+_0x3bb5e6[_0x1e8839(0x18f)]);_0x3bb5e6[_0x1e8839(0xcd)]&&_0x2f9d9b[_0x1e8839(0x124)](_0x1e8839(0xf0)+':\x20'+_0x3bb5e6['risk']);if(_0x3bb5e6[_0x1e8839(0xfa)]&&Array[_0x1e8839(0x105)](_0x3bb5e6['contexts'])){const _0x436f24=[];for(const _0x4501c6 of _0x3bb5e6[_0x1e8839(0xfa)]){if(_0x4501c6['eventMsgs']&&Array[_0x1e8839(0x105)](_0x4501c6[_0x1e8839(0x175)]))for(const _0x2e1595 of _0x4501c6[_0x1e8839(0x175)]){if(_0x2e1595[_0x1e8839(0x1d2)]&&Array[_0x1e8839(0x105)](_0x2e1595[_0x1e8839(0x1d2)]))for(const _0x38167b of _0x2e1595[_0x1e8839(0x1d2)]){_0x38167b['message']&&_0x436f24[_0x1e8839(0x124)](_0x38167b[_0x1e8839(0x1a5)]);}}}_0x436f24[_0x1e8839(0x146)]>0x0&&_0x2f9d9b[_0x1e8839(0x124)](_0x1e8839(0x1e5)+_0x436f24[_0x1e8839(0x1ab)](';\x20'));}return _0x2f9d9b[_0x1e8839(0x146)]>0x0?_0x2f9d9b[_0x1e8839(0x1ab)](',\x20'):_0x1e8839(0x161)+'니다.';}[a19_0x4e6b7b(0x15c)+a19_0x4e6b7b(0x14d)](_0x4a466a){const _0x32c3ec=a19_0x4e6b7b,_0x32b755={};_0x32b755[_0x32c3ec(0xee)]=_0x32c3ec(0xe2),_0x32b755[_0x32c3ec(0x142)]=_0x32c3ec(0x12b);const _0x5e99d9=_0x32b755,_0x5bb15f=typeof _0x4a466a===_0x32c3ec(0x10e)?parseInt(_0x4a466a):_0x4a466a;if(_0x5bb15f<=0x2)return _0x32c3ec(0xf8);else return _0x5bb15f===0x3?_0x5e99d9['aYvyT']:_0x5e99d9[_0x32c3ec(0x142)];}async[a19_0x4e6b7b(0x1b0)+a19_0x4e6b7b(0x1a7)+'Security'](_0x5ecda5){const _0x258393=a19_0x4e6b7b;try{logger[_0x258393(0x129)](_0x258393(0x126)+'석\x20시작:\x20'+_0x5ecda5[_0x258393(0xd1)][_0x258393(0x146)]+'개\x20파일');if(!_0x5ecda5['files']||_0x5ecda5[_0x258393(0xd1)][_0x258393(0x146)]===0x0)throw new Error(_0x258393(0x117)+_0x258393(0xcb));const _0x1b47cd=await this[_0x258393(0x12c)]['uploadMult'+_0x258393(0x15e)](_0x5ecda5[_0x258393(0xd1)],_0x5ecda5[_0x258393(0x179)+'e']);if(!_0x1b47cd[_0x258393(0x144)])throw new Error(_0x258393(0x1ce)+'\x20'+_0x1b47cd['error']);const _0x506559=_0x5ecda5[_0x258393(0xd1)][0x0]?.['fileName']||_0x258393(0xcf),_0x2a1f47={};_0x2a1f47[_0x258393(0x128)]=_0x5ecda5[_0x258393(0x179)+'e']||_0x506559,_0x2a1f47[_0x258393(0x1c5)+'t']='',_0x2a1f47[_0x258393(0x1b1)]=_0x1b47cd['key'];const _0x14c17c=_0x2a1f47,_0x554695=await this[_0x258393(0x19a)+_0x258393(0x1e0)]['requestAna'+'lysis'](_0x14c17c);logger[_0x258393(0x129)](_0x258393(0x148)+_0x258393(0x178)+_0x554695['requestId']);const _0x3332d7={};return _0x3332d7[_0x258393(0xf7)]=_0x554695[_0x258393(0xf7)]||_0x554695[_0x258393(0x10b)],_0x3332d7['status']=_0x554695[_0x258393(0x132)],_0x3332d7;}catch(_0xc91498){logger['error']('다중\x20파일\x20보안\x20분'+_0x258393(0x11b),_0xc91498);throw _0xc91498;}}async[a19_0x4e6b7b(0x1b0)+a19_0x4e6b7b(0x1a7)+a19_0x4e6b7b(0x1b4)](_0x4c6e36,_0x244080){const _0xcdb14d=a19_0x4e6b7b;try{logger[_0xcdb14d(0x129)](_0xcdb14d(0x11c)+_0xcdb14d(0x109)+_0xcdb14d(0x131)+_0x4c6e36['length']+'개\x20파일\x20경로');if(!_0x4c6e36||_0x4c6e36[_0xcdb14d(0x146)]===0x0)throw new Error(_0xcdb14d(0x123)+_0xcdb14d(0x156));const _0xcb9bfc=await this[_0xcdb14d(0x12c)][_0xcdb14d(0x1d8)+_0xcdb14d(0x14e)](_0x4c6e36,_0x244080);if(!_0xcb9bfc[_0xcdb14d(0x144)])throw new Error(_0xcdb14d(0x1ce)+'\x20'+_0xcb9bfc['error']);const _0x13ebf3=a19_0x4b663a['basename'](_0x4c6e36[0x0])||_0xcdb14d(0xcf),_0x9b22b6={};_0x9b22b6['fileName']=_0x244080||_0x13ebf3,_0x9b22b6[_0xcdb14d(0x1c5)+'t']='',_0x9b22b6[_0xcdb14d(0x1b1)]=_0xcb9bfc['key'];const _0x43be37=_0x9b22b6,_0x3a7cd7=await this['sparrowSer'+_0xcdb14d(0x1e0)][_0xcdb14d(0x172)+_0xcdb14d(0x15d)](_0x43be37);logger[_0xcdb14d(0x129)](_0xcdb14d(0x17a)+_0xcdb14d(0xd2)+_0x3a7cd7[_0xcdb14d(0x10b)]);const _0x2f4d7b={};return _0x2f4d7b['analysisId']=_0x3a7cd7[_0xcdb14d(0xf7)]||_0x3a7cd7[_0xcdb14d(0x10b)],_0x2f4d7b['status']=_0x3a7cd7[_0xcdb14d(0x132)],_0x2f4d7b;}catch(_0x15e22b){logger[_0xcdb14d(0x10a)](_0xcdb14d(0x108)+_0xcdb14d(0x145)+':',_0x15e22b);throw _0x15e22b;}}async[a19_0x4e6b7b(0x1d4)+a19_0x4e6b7b(0xe5)](_0x2f8ec2,_0x3d822d){const _0x320081=a19_0x4e6b7b,_0x28cd67={};_0x28cd67[_0x320081(0x1cf)]=_0x320081(0xcf);const _0x460a50=_0x28cd67;try{logger['info']('ZIP\x20파일\x20기반\x20'+_0x320081(0x157)+_0x2f8ec2);if(!_0x2f8ec2)throw new Error(_0x320081(0x154)+'\x20제공되지\x20않았습니'+'다.');const _0x5ce954=await this[_0x320081(0x12c)][_0x320081(0x17b)+_0x320081(0x1a8)](_0x2f8ec2);if(!_0x5ce954[_0x320081(0x144)])throw new Error(_0x320081(0x1af)+_0x320081(0xdf)+_0x5ce954['error']);const _0xaa986f=_0x3d822d||a19_0x4b663a[_0x320081(0xd0)](_0x2f8ec2)||_0x460a50[_0x320081(0x1cf)],_0x117784={};_0x117784['fileName']=_0xaa986f,_0x117784['fileConten'+'t']='',_0x117784['s3Key']=_0x5ce954['key'];const _0x5c7a9f=_0x117784,_0x2a1f88=await this[_0x320081(0x19a)+'vice'][_0x320081(0x172)+_0x320081(0x15d)](_0x5c7a9f);logger[_0x320081(0x129)](_0x320081(0x12d)+'분석\x20요청\x20완료:\x20'+_0x2a1f88[_0x320081(0x10b)]);const _0x5d7af2={};return _0x5d7af2[_0x320081(0xf7)]=_0x2a1f88[_0x320081(0xf7)]||_0x2a1f88['requestId'],_0x5d7af2[_0x320081(0x132)]=_0x2a1f88[_0x320081(0x132)],_0x5d7af2;}catch(_0x4dd996){logger[_0x320081(0x10a)](_0x320081(0x12d)+_0x320081(0x137)+'패:',_0x4dd996);throw _0x4dd996;}}async[a19_0x4e6b7b(0x143)+a19_0x4e6b7b(0x140)](_0x2cd071,_0x35904b){const _0x53f5d4=a19_0x4e6b7b;try{logger['info']('폴더\x20기반\x20보안\x20분'+_0x53f5d4(0x184)+_0x2cd071);if(!_0x2cd071){if(_0x53f5d4(0x106)==='IIdbJ')throw new Error(_0x53f5d4(0x183)+'지\x20않았습니다.');else _0x33e9c5[_0x53f5d4(0x1a5)]&&_0x545030[_0x53f5d4(0x124)](_0x55d7c7[_0x53f5d4(0x1a5)]);}const _0x527ff4=await this[_0x53f5d4(0x12c)]['uploadFold'+_0x53f5d4(0x158)](_0x2cd071,_0x35904b);if(!_0x527ff4[_0x53f5d4(0x144)])throw new Error(_0x53f5d4(0x19e)+_0x53f5d4(0xe4)+_0x527ff4[_0x53f5d4(0x10a)]);const _0x3864ba=_0x35904b||a19_0x4b663a[_0x53f5d4(0xd0)](_0x2cd071)||_0x53f5d4(0x180),_0xd52561={};_0xd52561['fileName']=_0x3864ba,_0xd52561[_0x53f5d4(0x1c5)+'t']='',_0xd52561[_0x53f5d4(0x1b1)]=_0x527ff4[_0x53f5d4(0x16f)];const _0x26868a=_0xd52561,_0x1e9210=await this[_0x53f5d4(0x19a)+_0x53f5d4(0x1e0)][_0x53f5d4(0x172)+_0x53f5d4(0x15d)](_0x26868a);logger[_0x53f5d4(0x129)](_0x53f5d4(0x19f)+_0x53f5d4(0x178)+_0x1e9210[_0x53f5d4(0x10b)]);const _0x5571fb={};return _0x5571fb[_0x53f5d4(0xf7)]=_0x1e9210[_0x53f5d4(0xf7)]||_0x1e9210['requestId'],_0x5571fb[_0x53f5d4(0x132)]=_0x1e9210['status'],_0x5571fb[_0x53f5d4(0x12f)+_0x53f5d4(0x1ad)]=_0x527ff4[_0x53f5d4(0x12f)+_0x53f5d4(0x1ad)],_0x5571fb;}catch(_0x4892c3){logger['error'](_0x53f5d4(0x1da)+_0x53f5d4(0x11b),_0x4892c3);throw _0x4892c3;}}async[a19_0x4e6b7b(0x1e2)+a19_0x4e6b7b(0x195)](_0x1101e3,_0x4cc8c1){const _0x583602=a19_0x4e6b7b,_0x121d05={};_0x121d05[_0x583602(0x160)]=function(_0x350239,_0xc613c9){return _0x350239||_0xc613c9;};const _0x353ea9=_0x121d05;try{logger[_0x583602(0x129)]('단일\x20파일\x20SCA\x20'+_0x583602(0x176)+_0x1101e3);if(!_0x1101e3)throw new Error(_0x583602(0x123)+_0x583602(0x156));const _0x34a0af=await this[_0x583602(0x12c)][_0x583602(0x1d8)+_0x583602(0x14e)]([_0x1101e3],_0x4cc8c1);if(!_0x34a0af['success'])throw new Error('파일\x20업로드\x20실패:'+'\x20'+_0x34a0af[_0x583602(0x10a)]);const _0x28e22e=a19_0x4b663a[_0x583602(0xd0)](_0x1101e3)||_0x583602(0xcf),_0x3aa125={'fileName':_0x353ea9[_0x583602(0x160)](_0x4cc8c1,_0x28e22e),'fileContent':'','s3Key':_0x34a0af[_0x583602(0x16f)]},_0x58f9e6=await this[_0x583602(0x19a)+_0x583602(0x1e0)]['requestSca'+_0x583602(0xfe)](_0x3aa125);logger[_0x583602(0x129)](_0x583602(0x1d5)+_0x583602(0xda)+_0x58f9e6[_0x583602(0x10b)]);const _0xf2a2df={};return _0xf2a2df[_0x583602(0xf7)]=_0x58f9e6['analysisId']||_0x58f9e6[_0x583602(0x10b)],_0xf2a2df[_0x583602(0x132)]=_0x58f9e6['status'],_0xf2a2df[_0x583602(0x165)+'pe']=_0x583602(0x116),_0xf2a2df;}catch(_0x311744){logger[_0x583602(0x10a)]('단일\x20파일\x20SCA\x20'+_0x583602(0x151),_0x311744);throw _0x311744;}}async['analyzeFil'+a19_0x4e6b7b(0xd5)](_0x5975dc,_0x2a7408){const _0x34e96f=a19_0x4e6b7b;try{logger['info'](_0x34e96f(0x118)+_0x34e96f(0xe9)+_0x5975dc[_0x34e96f(0x146)]+_0x34e96f(0x1b7));if(!_0x5975dc||_0x5975dc[_0x34e96f(0x146)]===0x0)throw new Error('분석할\x20파일\x20경로가'+'\x20없습니다.');const _0x3eadc9=await this['s3Service'][_0x34e96f(0x1d8)+_0x34e96f(0x14e)](_0x5975dc,_0x2a7408);if(!_0x3eadc9[_0x34e96f(0x144)])throw new Error(_0x34e96f(0x1ce)+'\x20'+_0x3eadc9[_0x34e96f(0x10a)]);const _0xc3d862=a19_0x4b663a[_0x34e96f(0xd0)](_0x5975dc[0x0])||_0x34e96f(0xcf),_0x16f719={};_0x16f719[_0x34e96f(0x128)]=_0x2a7408||_0xc3d862,_0x16f719['fileConten'+'t']='',_0x16f719[_0x34e96f(0x1b1)]=_0x3eadc9[_0x34e96f(0x16f)];const _0x1930a8=_0x16f719,_0x507c21=await this[_0x34e96f(0x19a)+_0x34e96f(0x1e0)][_0x34e96f(0x115)+_0x34e96f(0xfe)](_0x1930a8);logger[_0x34e96f(0x129)](_0x34e96f(0x118)+'CA\x20분석\x20요청\x20완'+_0x34e96f(0x1b8)+_0x507c21[_0x34e96f(0x10b)]);const _0x46aca7={};return _0x46aca7[_0x34e96f(0xf7)]=_0x507c21['analysisId']||_0x507c21[_0x34e96f(0x10b)],_0x46aca7[_0x34e96f(0x132)]=_0x507c21[_0x34e96f(0x132)],_0x46aca7[_0x34e96f(0x165)+'pe']=_0x34e96f(0x116),_0x46aca7;}catch(_0x3c8149){logger['error'](_0x34e96f(0x118)+'CA\x20분석\x20요청\x20실'+'패:',_0x3c8149);throw _0x3c8149;}}async[a19_0x4e6b7b(0x143)+a19_0x4e6b7b(0xd8)](_0x3bd88f,_0x44a7cd){const _0x5d239d=a19_0x4e6b7b;try{logger['info'](_0x5d239d(0x181)+'분석\x20시작:\x20'+_0x3bd88f);if(!_0x3bd88f)throw new Error(_0x5d239d(0x183)+_0x5d239d(0x1a1));const _0x41a86e=await this['s3Service'][_0x5d239d(0x16e)+'erAsZip'](_0x3bd88f,_0x44a7cd);if(!_0x41a86e['success'])throw new Error(_0x5d239d(0x19e)+_0x5d239d(0xe4)+_0x41a86e[_0x5d239d(0x10a)]);const _0x21d1ee=_0x44a7cd||a19_0x4b663a['basename'](_0x3bd88f)||_0x5d239d(0x180),_0x5b9600={};_0x5b9600[_0x5d239d(0x128)]=_0x21d1ee,_0x5b9600[_0x5d239d(0x1c5)+'t']='',_0x5b9600[_0x5d239d(0x1b1)]=_0x41a86e[_0x5d239d(0x16f)];const _0xc4097c=_0x5b9600,_0x59474f=await this[_0x5d239d(0x19a)+_0x5d239d(0x1e0)]['requestSca'+'Analysis'](_0xc4097c);logger[_0x5d239d(0x129)](_0x5d239d(0x181)+_0x5d239d(0xda)+_0x59474f['requestId']);const _0x506dec={};return _0x506dec['analysisId']=_0x59474f['analysisId']||_0x59474f[_0x5d239d(0x10b)],_0x506dec[_0x5d239d(0x132)]=_0x59474f[_0x5d239d(0x132)],_0x506dec[_0x5d239d(0x165)+'pe']=_0x5d239d(0x116),_0x506dec[_0x5d239d(0x12f)+_0x5d239d(0x1ad)]=_0x41a86e[_0x5d239d(0x12f)+_0x5d239d(0x1ad)],_0x506dec;}catch(_0xa65c39){logger[_0x5d239d(0x10a)](_0x5d239d(0x181)+_0x5d239d(0x151),_0xa65c39);throw _0xa65c39;}}async[a19_0x4e6b7b(0x1d4)+'Sca'](_0x1e8146,_0x3214d1){const _0x509d26=a19_0x4e6b7b,_0x56a2e6={};_0x56a2e6[_0x509d26(0x1df)]=_0x509d26(0x116);const _0x486f17=_0x56a2e6;try{logger['info']('ZIP\x20파일\x20기반\x20'+_0x509d26(0xe1)+'\x20'+_0x1e8146);if(!_0x1e8146)throw new Error('ZIP\x20파일\x20경로가'+_0x509d26(0xf9)+'다.');const _0x1a125e=await this['s3Service'][_0x509d26(0x17b)+_0x509d26(0x1a8)](_0x1e8146);if(!_0x1a125e[_0x509d26(0x144)])throw new Error('ZIP\x20파일\x20업로드'+'\x20실패:\x20'+_0x1a125e[_0x509d26(0x10a)]);const _0x12104b=_0x3214d1||a19_0x4b663a[_0x509d26(0xd0)](_0x1e8146)||_0x509d26(0xcf),_0x41e58b={};_0x41e58b[_0x509d26(0x128)]=_0x12104b,_0x41e58b['fileConten'+'t']='',_0x41e58b[_0x509d26(0x1b1)]=_0x1a125e[_0x509d26(0x16f)];const _0x2edc8f=_0x41e58b,_0xba0970=await this['sparrowSer'+'vice'][_0x509d26(0x115)+'Analysis'](_0x2edc8f);logger[_0x509d26(0x129)](_0x509d26(0x12d)+_0x509d26(0x16d)+'완료:\x20'+_0xba0970['requestId']);const _0x305906={};return _0x305906[_0x509d26(0xf7)]=_0xba0970[_0x509d26(0xf7)]||_0xba0970[_0x509d26(0x10b)],_0x305906[_0x509d26(0x132)]=_0xba0970['status'],_0x305906[_0x509d26(0x165)+'pe']=_0x486f17[_0x509d26(0x1df)],_0x305906;}catch(_0x5670c5){logger['error'](_0x509d26(0x12d)+_0x509d26(0x16d)+_0x509d26(0x14a),_0x5670c5);throw _0x5670c5;}}[a19_0x4e6b7b(0x15c)+'y'](_0x18c3bf){const _0x38e2cb=a19_0x4e6b7b,_0x9245b9={};_0x9245b9[_0x38e2cb(0xf8)]=_0x38e2cb(0xf8),_0x9245b9[_0x38e2cb(0xf6)]='HIGH',_0x9245b9['MEDIUM']=_0x38e2cb(0xe2),_0x9245b9[_0x38e2cb(0x12b)]='LOW',_0x9245b9[_0x38e2cb(0x13e)]=_0x38e2cb(0x12b);const _0x1df6b2=_0x9245b9;return _0x1df6b2[_0x18c3bf?.[_0x38e2cb(0xcc)+'e']()]||_0x38e2cb(0xe2);}async[a19_0x4e6b7b(0x149)+a19_0x4e6b7b(0x15f)+'s'](_0x33d296){const _0x3e257a=a19_0x4e6b7b,_0x42fac9={};_0x42fac9[_0x3e257a(0x1a4)]='SCA\x20분석\x20결과\x20'+_0x3e257a(0x163);const _0x59fb42=_0x42fac9;try{if(this[_0x3e257a(0xf2)+_0x3e257a(0x1de)]['has'](_0x33d296))return logger[_0x3e257a(0x129)]('SCA\x20분석\x20결과\x20'+_0x3e257a(0x103)+_0x33d296),this[_0x3e257a(0xf2)+_0x3e257a(0x1de)]['get'](_0x33d296);logger[_0x3e257a(0x129)]('SCA\x20분석\x20결과\x20'+_0x3e257a(0x166)+_0x33d296);const _0xe1ccc1=await this[_0x3e257a(0x19a)+'vice'][_0x3e257a(0x112)+_0x3e257a(0x1a0)+'on'](_0x33d296),_0x2b5c1e=_0xe1ccc1[_0x3e257a(0x186)]?String(_0xe1ccc1['result'])[_0x3e257a(0xcc)+'e']():undefined;let _0x3a1507;_0x2b5c1e===_0x3e257a(0x135)||_0x2b5c1e===_0x3e257a(0xdb)?_0x3a1507=_0x3e257a(0x11a):_0x3a1507='completed';const _0x371fcf=_0xe1ccc1[_0x3e257a(0xf7)]||_0x33d296;logger['info'](_0x3e257a(0x102)+_0x3e257a(0x1c3)+_0x371fcf);const _0x5e7799=await this[_0x3e257a(0x19a)+'vice'][_0x3e257a(0x1d9)+_0x3e257a(0x12a)+'lts'](_0x371fcf),_0x37584e=this[_0x3e257a(0x104)+_0x3e257a(0x191)](_0x5e7799);let _0x768db9=0x0,_0x5f5221=0x0,_0x336582=0x0,_0x4898ad=0x0;for(const _0x2a7dde of _0x37584e){for(const _0x215c2d of _0x2a7dde[_0x3e257a(0x1cd)]){switch(_0x215c2d[_0x3e257a(0xea)]){case _0x3e257a(0xf6):_0x768db9++;break;case'HIGH':_0x5f5221++;break;case _0x3e257a(0xe2):_0x336582++;break;case _0x3e257a(0x12b):_0x4898ad++;break;}}}const _0x388bb9=_0x768db9+_0x5f5221+_0x336582+_0x4898ad,_0x122e2d=this[_0x3e257a(0xeb)+_0x3e257a(0x155)+'ef'](_0x37584e,_0x388bb9,_0x768db9,_0x5f5221,_0x336582,_0x4898ad),_0x18e28d={};_0x18e28d[_0x3e257a(0xf7)]=_0x371fcf,_0x18e28d['status']=_0x3a1507,_0x18e28d[_0x3e257a(0x186)]=_0x2b5c1e,_0x18e28d['components']=_0x37584e,_0x18e28d[_0x3e257a(0xd9)+_0x3e257a(0x18d)]=_0x388bb9,_0x18e28d[_0x3e257a(0x13c)+_0x3e257a(0x1c7)]=_0x768db9,_0x18e28d[_0x3e257a(0x107)]=_0x5f5221,_0x18e28d[_0x3e257a(0x10f)+'t']=_0x336582,_0x18e28d[_0x3e257a(0x189)]=_0x4898ad,_0x18e28d['analysisBr'+_0x3e257a(0xd6)]=_0x122e2d;const _0x392b5c=_0x18e28d;return this['scaResults'+_0x3e257a(0x1de)][_0x3e257a(0xdc)](_0x33d296,_0x392b5c),_0x371fcf!==_0x33d296&&this[_0x3e257a(0xf2)+_0x3e257a(0x1de)][_0x3e257a(0xdc)](_0x371fcf,_0x392b5c),logger[_0x3e257a(0x129)](_0x3e257a(0x102)+_0x3e257a(0x119)+_0x37584e[_0x3e257a(0x146)]+_0x3e257a(0x17d)+_0x388bb9+_0x3e257a(0x1be)),_0x392b5c;}catch(_0x55c084){logger[_0x3e257a(0x10a)](_0x59fb42[_0x3e257a(0x1a4)],_0x55c084);throw _0x55c084;}}[a19_0x4e6b7b(0x104)+a19_0x4e6b7b(0x191)](_0x3e9430){const _0x52e4cd=a19_0x4e6b7b,_0x355ba5={};_0x355ba5['JYgRz']=_0x52e4cd(0x193);const _0x2ffd16=_0x355ba5,_0x4db733=[];for(const _0x2705ee of _0x3e9430){if(_0x2705ee[_0x52e4cd(0x19d)]&&_0x2705ee[_0x52e4cd(0xd4)]!==undefined){const _0x550517=[];if(_0x2705ee[_0x52e4cd(0x152)]&&Array['isArray'](_0x2705ee[_0x52e4cd(0x152)]))for(const _0x5aced2 of _0x2705ee[_0x52e4cd(0x152)]){const _0x2733f3={};_0x2733f3['name']=_0x5aced2['name']||_0x5aced2[_0x52e4cd(0x1e1)]||_0x2ffd16[_0x52e4cd(0x1ca)],_0x2733f3[_0x52e4cd(0x1e1)]=_0x5aced2[_0x52e4cd(0x1e1)],_0x2733f3[_0x52e4cd(0x169)]=_0x5aced2['url'],_0x550517[_0x52e4cd(0x124)](_0x2733f3);}const _0x1bcb95=[];if(_0x2705ee[_0x52e4cd(0x1cd)]&&Array['isArray'](_0x2705ee[_0x52e4cd(0x1cd)]))for(const _0x454746 of _0x2705ee['issues']){_0x1bcb95[_0x52e4cd(0x124)]({'cveId':_0x454746[_0x52e4cd(0x14c)]||_0x454746['id']||_0x2ffd16['JYgRz'],'severity':this[_0x52e4cd(0x1b5)+_0x52e4cd(0x1c0)](_0x454746[_0x52e4cd(0xea)]||_0x454746[_0x52e4cd(0xcd)]),'cvssScore':_0x454746[_0x52e4cd(0x1ba)]||_0x454746[_0x52e4cd(0x1e4)],'description':_0x454746[_0x52e4cd(0x16a)+'n']||_0x454746[_0x52e4cd(0x10c)],'fixedVersion':_0x454746['fixedVersi'+'on']||_0x454746[_0x52e4cd(0x167)+_0x52e4cd(0xe6)]});}const _0x164c51={};_0x164c51[_0x52e4cd(0x19d)]=_0x2705ee['name'],_0x164c51[_0x52e4cd(0xd4)]=_0x2705ee[_0x52e4cd(0xd4)]||_0x2ffd16[_0x52e4cd(0x1ca)],_0x164c51[_0x52e4cd(0x164)]=_0x2705ee[_0x52e4cd(0x164)],_0x164c51['repository']=_0x2705ee['repository'],_0x164c51[_0x52e4cd(0x1d6)+_0x52e4cd(0x1dc)]=_0x2705ee['repository'+_0x52e4cd(0x1dc)],_0x164c51[_0x52e4cd(0xca)]=_0x2705ee['matchType'],_0x164c51[_0x52e4cd(0x152)]=_0x550517,_0x164c51[_0x52e4cd(0x1cd)]=_0x1bcb95,_0x164c51[_0x52e4cd(0x192)+_0x52e4cd(0x1a2)]=_0x2705ee[_0x52e4cd(0x192)+_0x52e4cd(0x1a2)],_0x164c51[_0x52e4cd(0x1cb)+_0x52e4cd(0x15b)]=_0x2705ee[_0x52e4cd(0x1cb)+_0x52e4cd(0x15b)],_0x4db733[_0x52e4cd(0x124)](_0x164c51);}else{if(Array[_0x52e4cd(0x105)](_0x2705ee))for(const _0x4e8cf8 of _0x2705ee){if(_0x4e8cf8[_0x52e4cd(0x19d)]&&_0x4e8cf8[_0x52e4cd(0xd4)]!==undefined){const _0x2ec69f=[];if(_0x4e8cf8[_0x52e4cd(0x152)]&&Array[_0x52e4cd(0x105)](_0x4e8cf8[_0x52e4cd(0x152)]))for(const _0x56edec of _0x4e8cf8[_0x52e4cd(0x152)]){const _0x592796={};_0x592796[_0x52e4cd(0x19d)]=_0x56edec['name']||_0x56edec[_0x52e4cd(0x1e1)]||_0x52e4cd(0x193),_0x592796[_0x52e4cd(0x1e1)]=_0x56edec[_0x52e4cd(0x1e1)],_0x592796[_0x52e4cd(0x169)]=_0x56edec[_0x52e4cd(0x169)],_0x2ec69f[_0x52e4cd(0x124)](_0x592796);}const _0x3ff26c=[];if(_0x4e8cf8['issues']&&Array[_0x52e4cd(0x105)](_0x4e8cf8['issues']))for(const _0x11881d of _0x4e8cf8[_0x52e4cd(0x1cd)]){_0x3ff26c['push']({'cveId':_0x11881d[_0x52e4cd(0x14c)]||_0x11881d['id']||'Unknown','severity':this[_0x52e4cd(0x1b5)+'rity'](_0x11881d[_0x52e4cd(0xea)]||_0x11881d[_0x52e4cd(0xcd)]),'cvssScore':_0x11881d[_0x52e4cd(0x1ba)]||_0x11881d[_0x52e4cd(0x1e4)],'description':_0x11881d['descriptio'+'n']||_0x11881d['summary'],'fixedVersion':_0x11881d['fixedVersi'+'on']||_0x11881d['patchedVer'+_0x52e4cd(0xe6)]});}const _0x118e8c={};_0x118e8c[_0x52e4cd(0x19d)]=_0x4e8cf8[_0x52e4cd(0x19d)],_0x118e8c[_0x52e4cd(0xd4)]=_0x4e8cf8[_0x52e4cd(0xd4)]||_0x52e4cd(0x193),_0x118e8c[_0x52e4cd(0x164)]=_0x4e8cf8[_0x52e4cd(0x164)],_0x118e8c[_0x52e4cd(0x1d6)]=_0x4e8cf8['repository'],_0x118e8c[_0x52e4cd(0x1d6)+_0x52e4cd(0x1dc)]=_0x4e8cf8[_0x52e4cd(0x1d6)+_0x52e4cd(0x1dc)],_0x118e8c[_0x52e4cd(0xca)]=_0x4e8cf8['matchType'],_0x118e8c[_0x52e4cd(0x152)]=_0x2ec69f,_0x118e8c[_0x52e4cd(0x1cd)]=_0x3ff26c,_0x118e8c[_0x52e4cd(0x192)+'Score']=_0x4e8cf8[_0x52e4cd(0x192)+'Score'],_0x118e8c[_0x52e4cd(0x1cb)+'ate']=_0x4e8cf8[_0x52e4cd(0x1cb)+_0x52e4cd(0x15b)],_0x4db733[_0x52e4cd(0x124)](_0x118e8c);}}}}return _0x4db733;}[a19_0x4e6b7b(0x1b5)+a19_0x4e6b7b(0x1c0)](_0x12c2b2){const _0x41bcf5=a19_0x4e6b7b,_0x139d3f={};_0x139d3f[_0x41bcf5(0x1bc)]=function(_0x24c406,_0x16d0b1){return _0x24c406===_0x16d0b1;},_0x139d3f[_0x41bcf5(0x13a)]=function(_0x37a8b3,_0x39919e){return _0x37a8b3>=_0x39919e;};const _0x2ab919=_0x139d3f;if(_0x2ab919[_0x41bcf5(0x1bc)](typeof _0x12c2b2,_0x41bcf5(0x1c9))){if(_0x12c2b2>=0x9)return'CRITICAL';if(_0x2ab919[_0x41bcf5(0x13a)](_0x12c2b2,0x7))return'HIGH';if(_0x12c2b2>=0x4)return'MEDIUM';return _0x41bcf5(0x12b);}const _0xdaae96={};_0xdaae96['CRITICAL']=_0x41bcf5(0xf6),_0xdaae96[_0x41bcf5(0xf8)]=_0x41bcf5(0xf8),_0xdaae96[_0x41bcf5(0xe2)]=_0x41bcf5(0xe2),_0xdaae96['LOW']=_0x41bcf5(0x12b),_0xdaae96[_0x41bcf5(0x13e)]='LOW';const _0x100a1c=_0xdaae96;return _0x100a1c[_0x12c2b2?.[_0x41bcf5(0xcc)+'e']()]||_0x41bcf5(0xe2);}[a19_0x4e6b7b(0xeb)+'aReportBri'+'ef'](_0x4cd2de,_0x433d1d,_0x1a3bea,_0x2c4810,_0x377787,_0x14547f){const _0x37763b=a19_0x4e6b7b,_0x20ced7=_0x4cd2de[_0x37763b(0x1d0)](_0x53d484=>_0x53d484[_0x37763b(0x1cd)][_0x37763b(0x146)]>0x0),_0xfd1dd8=new Set();for(const _0xab5608 of _0x4cd2de){for(const _0x2e8313 of _0xab5608[_0x37763b(0x152)]){_0xfd1dd8[_0x37763b(0x188)](_0x2e8313[_0x37763b(0x19d)]);}}let _0x562095='식별된\x20컴포넌트\x20'+_0x4cd2de['length']+_0x37763b(0xef)+_0x20ced7[_0x37763b(0x146)]+('개에서\x20취약점\x20발견'+'.\x20');_0x562095+='총\x20'+_0x433d1d+(_0x37763b(0x170)+'tical:\x20')+_0x1a3bea+',\x20High:\x20'+_0x2c4810+',\x20Medium:\x20'+_0x377787+_0x37763b(0xf3)+_0x14547f+_0x37763b(0x14f);_0xfd1dd8[_0x37763b(0x1d7)]>0x0&&(_0x562095+=_0x37763b(0x185)+Array[_0x37763b(0x198)](_0xfd1dd8)[_0x37763b(0x122)](0x0,0x5)[_0x37763b(0x1ab)](',\x20')+(_0xfd1dd8['size']>0x5?_0x37763b(0x171)+(_0xfd1dd8[_0x37763b(0x1d7)]-0x5)+'개':'')+'.\x20');if(_0x1a3bea>0x0||_0x2c4810>0x0)_0x562095+=_0x37763b(0x16c)+_0x37763b(0x168)+'데이트\x20권장.';else _0x377787>0x0?_0x562095+=_0x37763b(0x199)+_0x37763b(0xec)+'.':_0x562095+=_0x37763b(0x1c2)+'양호.';return _0x562095;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x617dd5=a20_0x533d;(function(_0x26d62c,_0x5dbdf5){const _0x78a9a4=a20_0x533d,_0x51edca=_0x26d62c();while(!![]){try{const _0x5e9ccc=parseInt(_0x78a9a4(0x15c))/0x1*(-parseInt(_0x78a9a4(0x166))/0x2)+-parseInt(_0x78a9a4(0x11a))/0x3*(-parseInt(_0x78a9a4(0x14a))/0x4)+parseInt(_0x78a9a4(0x12c))/0x5*(parseInt(_0x78a9a4(0x11f))/0x6)+-parseInt(_0x78a9a4(0x122))/0x7*(-parseInt(_0x78a9a4(0x13d))/0x8)+parseInt(_0x78a9a4(0x15f))/0x9+-parseInt(_0x78a9a4(0x113))/0xa*(parseInt(_0x78a9a4(0x163))/0xb)+-parseInt(_0x78a9a4(0x115))/0xc;if(_0x5e9ccc===_0x5dbdf5)break;else _0x51edca['push'](_0x51edca['shift']());}catch(_0x32f2d4){_0x51edca['push'](_0x51edca['shift']());}}}(a20_0x3945,0xca6d3));const a20_0x1b794a=(function(){let _0x5def8e=!![];return function(_0x59ce87,_0x13045a){const _0x286d66=_0x5def8e?function(){const _0x2f1041=a20_0x533d;if(_0x13045a){const _0x2e44c5=_0x13045a[_0x2f1041(0x14d)](_0x59ce87,arguments);return _0x13045a=null,_0x2e44c5;}}:function(){};return _0x5def8e=![],_0x286d66;};}()),a20_0x479406=a20_0x1b794a(this,function(){const _0x5349fb=a20_0x533d;return a20_0x479406['toString']()[_0x5349fb(0x117)]('(((.+)+)+)'+'+$')[_0x5349fb(0x165)]()[_0x5349fb(0x12b)+'r'](a20_0x479406)[_0x5349fb(0x117)]('(((.+)+)+)'+'+$');});a20_0x479406();import a20_0x148b77 from'axios';import a20_0x13aea5 from'adm-zip';import a20_0x204dac from'path';function a20_0x3945(){const _0x2f0367=['erabilitie','descriptio','../../chec','sByComplia','recursive','constructo','280290lmYcrm','개\x20파일','mkdirSync','arraybuffe','checkers.z','ync','baseUrl','size','\x20완료:\x20','toLowerCas','tems','체커\x20규칙\x20다운로드','개\x20규칙\x20로드','checkerKey','lang','nce','filter','37384DdGsdb','referenceI','checkerCac','aded','getComplia','unlinkSync','\x20실패:','\x20시작...','length','version','/api/v1/ch','apiKey','reference','124992yISdTn','error','loadChecke','apply','kersDownlo','name','rabilities','some','find','info','parse','edInfo','nceInfo','values','warn','체커\x20파일\x20파싱\x20실','kers','clear','29Szvyrr','readdirSyn','groupVulne','5489415ezSYDZ','set','기존\x20체커\x20캐시\x20사','writeFileS','21813qvEuUZ','getLocaliz','toString','80582PQlCtC','ensureChec','패:\x20','erInfo','.rule','checkersDi','tXNgw','existsSync','getCachedC','sWithCheck','fVPhc','체커\x20디렉토리가\x20존','join','endsWith','5170opTAfS','key','1364400NEZfKj','push','search','dirname','initialize','12hhghYl','tHUzU','includes','localized','Bearer\x20','120bzmpZB','resolve','extractAll','1918UmtBth','readFileSy','체커\x20서비스\x20초기화','get'];a20_0x3945=function(){return _0x2f0367;};return a20_0x3945();}import a20_0x397cf4 from'fs';function a20_0x533d(_0x3b6360,_0x1fcc36){_0x3b6360=_0x3b6360-0x107;const _0x1ba000=a20_0x3945();let _0x479406=_0x1ba000[_0x3b6360];return _0x479406;}import{fileURLToPath}from'url';import{appConfig}from'../config/appConfig.js';import{logger}from'../utils/logger.js';export class CheckerService{[a20_0x617dd5(0x10a)+'r'];[a20_0x617dd5(0x13f)+'he'];['initialize'+'d']=![];constructor(_0x6f8ec8){const _0x4fa5bf=a20_0x617dd5;if(_0x6f8ec8)this[_0x4fa5bf(0x10a)+'r']=_0x6f8ec8;else{const _0x36cafc=a20_0x204dac[_0x4fa5bf(0x118)](fileURLToPath(import.meta.url));this[_0x4fa5bf(0x10a)+'r']=a20_0x204dac[_0x4fa5bf(0x120)](_0x36cafc,_0x4fa5bf(0x128)+_0x4fa5bf(0x15a));}this[_0x4fa5bf(0x13f)+'he']=new Map();}async['initialize'](){const _0x1354d0=a20_0x617dd5,_0x4e8ca2={};_0x4e8ca2['tHUzU']=_0x1354d0(0x124)+'\x20실패:';const _0x5a3c95=_0x4e8ca2;if(this[_0x1354d0(0x119)+'d'])return;try{await this['ensureChec'+_0x1354d0(0x14e)+_0x1354d0(0x140)](),await this[_0x1354d0(0x14c)+'rs'](),this['initialize'+'d']=!![],logger[_0x1354d0(0x153)](_0x1354d0(0x124)+'\x20완료:\x20'+this[_0x1354d0(0x13f)+'he'][_0x1354d0(0x133)]+_0x1354d0(0x138));}catch(_0x25c1d9){logger[_0x1354d0(0x14b)](_0x5a3c95[_0x1354d0(0x11b)],_0x25c1d9),this[_0x1354d0(0x119)+'d']=!![];}}async[a20_0x617dd5(0x167)+'kersDownlo'+a20_0x617dd5(0x140)](){const _0x5261d7=a20_0x617dd5,_0x4eabe5={};_0x4eabe5[_0x5261d7(0x10f)]=function(_0x219be5,_0x5c6517){return _0x219be5>_0x5c6517;};const _0x4fb412=_0x4eabe5;if(a20_0x397cf4['existsSync'](this['checkersDi'+'r'])){const _0x27e0ca=a20_0x397cf4[_0x5261d7(0x15d)+'c'](this[_0x5261d7(0x10a)+'r']),_0x4e7b66=_0x27e0ca[_0x5261d7(0x13c)](_0x12c5e6=>_0x12c5e6[_0x5261d7(0x112)](_0x5261d7(0x109)));if(_0x4fb412[_0x5261d7(0x10f)](_0x4e7b66['length'],0x0)){logger[_0x5261d7(0x153)](_0x5261d7(0x161)+'용:\x20'+_0x4e7b66[_0x5261d7(0x145)]+'개\x20파일');return;}}logger[_0x5261d7(0x153)](_0x5261d7(0x137)+_0x5261d7(0x144));try{const _0x4f3675=await a20_0x148b77[_0x5261d7(0x125)](appConfig['sparrow'][_0x5261d7(0x132)]+(_0x5261d7(0x147)+'eckers'),{'headers':{'Authorization':_0x5261d7(0x11e)+appConfig['sparrow'][_0x5261d7(0x148)]},'responseType':_0x5261d7(0x12f)+'r','timeout':0xea60});if(!a20_0x397cf4[_0x5261d7(0x10c)](this[_0x5261d7(0x10a)+'r'])){const _0x308302={};_0x308302[_0x5261d7(0x12a)]=!![],a20_0x397cf4[_0x5261d7(0x12e)](this[_0x5261d7(0x10a)+'r'],_0x308302);}const _0x552c99=a20_0x204dac['join'](this[_0x5261d7(0x10a)+'r'],_0x5261d7(0x130)+'ip');a20_0x397cf4[_0x5261d7(0x162)+_0x5261d7(0x131)](_0x552c99,Buffer['from'](_0x4f3675['data']));const _0x13ca34=new a20_0x13aea5(_0x552c99);_0x13ca34[_0x5261d7(0x121)+'To'](this[_0x5261d7(0x10a)+'r'],!![]),a20_0x397cf4['unlinkSync'](_0x552c99);const _0x3bb4d6=a20_0x397cf4[_0x5261d7(0x15d)+'c'](this['checkersDi'+'r']),_0x5a63d9=_0x3bb4d6[_0x5261d7(0x13c)](_0x15bbd8=>_0x15bbd8[_0x5261d7(0x112)](_0x5261d7(0x109)));logger[_0x5261d7(0x153)]('체커\x20규칙\x20다운로드'+_0x5261d7(0x134)+_0x5a63d9[_0x5261d7(0x145)]+_0x5261d7(0x12d));}catch(_0x1a592f){logger[_0x5261d7(0x14b)]('체커\x20규칙\x20다운로드'+_0x5261d7(0x143),_0x1a592f);throw _0x1a592f;}}async[a20_0x617dd5(0x14c)+'rs'](){const _0x2562e6=a20_0x617dd5;if(!a20_0x397cf4[_0x2562e6(0x10c)](this[_0x2562e6(0x10a)+'r'])){logger['warn'](_0x2562e6(0x110)+'재하지\x20않습니다');return;}const _0x1b7c94=a20_0x397cf4['readdirSyn'+'c'](this[_0x2562e6(0x10a)+'r']),_0x209634=_0x1b7c94[_0x2562e6(0x13c)](_0x969fb7=>_0x969fb7[_0x2562e6(0x112)](_0x2562e6(0x109)));for(const _0x2123b0 of _0x209634){try{const _0x567db1=a20_0x204dac[_0x2562e6(0x111)](this[_0x2562e6(0x10a)+'r'],_0x2123b0),_0x538daf=a20_0x397cf4[_0x2562e6(0x123)+'nc'](_0x567db1,'utf-8'),_0x4b5f24=JSON[_0x2562e6(0x154)](_0x538daf);_0x4b5f24[_0x2562e6(0x114)]&&this[_0x2562e6(0x13f)+'he'][_0x2562e6(0x160)](_0x4b5f24['key'],_0x4b5f24);}catch(_0x2b8420){logger[_0x2562e6(0x158)](_0x2562e6(0x159)+_0x2562e6(0x107)+_0x2123b0,_0x2b8420);}}}['getChecker'+'Info'](_0x4a327a,_0x473660='ko'){const _0x3d6c86=a20_0x617dd5;return this[_0x3d6c86(0x13f)+'he']['get'](_0x4a327a);}['getLocaliz'+a20_0x617dd5(0x155)](_0x2ed8e7,_0x19e321='ko'){const _0x237c6f=a20_0x617dd5,_0x3121a1=this[_0x237c6f(0x13f)+'he'][_0x237c6f(0x125)](_0x2ed8e7);if(!_0x3121a1)return undefined;const _0x2bab4d=_0x3121a1['localized']['find'](_0x2740ef=>_0x2740ef['lang']===_0x19e321)||_0x3121a1[_0x237c6f(0x11d)][_0x237c6f(0x152)](_0x1a4674=>_0x1a4674[_0x237c6f(0x13a)]==='en')||_0x3121a1['localized'][0x0];if(!_0x2bab4d)return undefined;const _0x2ea8bf={};return _0x2ea8bf[_0x237c6f(0x14f)]=_0x2bab4d[_0x237c6f(0x14f)],_0x2ea8bf[_0x237c6f(0x127)+'n']=_0x2bab4d[_0x237c6f(0x127)+'n'],_0x2ea8bf;}['getComplia'+a20_0x617dd5(0x156)](_0x2bc85f){const _0x44c976=a20_0x617dd5,_0x21a8c3=this[_0x44c976(0x13f)+'he'][_0x44c976(0x125)](_0x2bc85f);return _0x21a8c3?.[_0x44c976(0x13e)+'tems']||[];}['getChecker'+a20_0x617dd5(0x129)+a20_0x617dd5(0x13b)](_0x39dd0b){const _0x25c41f=a20_0x617dd5,_0x355b41=[];for(const _0x4ab5aa of this[_0x25c41f(0x13f)+'he'][_0x25c41f(0x157)]()){const _0x1e7ab2=_0x4ab5aa[_0x25c41f(0x13e)+_0x25c41f(0x136)]?.[_0x25c41f(0x151)](_0x502fa5=>_0x502fa5[_0x25c41f(0x149)][_0x25c41f(0x14f)][_0x25c41f(0x135)+'e']()[_0x25c41f(0x11c)](_0x39dd0b['toLowerCas'+'e']()));_0x1e7ab2&&_0x355b41[_0x25c41f(0x116)](_0x4ab5aa);}return _0x355b41;}['enrichVuln'+a20_0x617dd5(0x126)+a20_0x617dd5(0x10e)+a20_0x617dd5(0x108)](_0x4950e4,_0x17d68f='ko'){return _0x4950e4['map'](_0x1114b1=>{const _0x524334=a20_0x533d,_0x205523=_0x1114b1[_0x524334(0x139)];if(!_0x205523)return _0x1114b1;const _0x485953=this[_0x524334(0x164)+_0x524334(0x155)](_0x205523,_0x17d68f),_0x4549c7=this['getComplia'+_0x524334(0x156)](_0x205523),_0x1562f3={..._0x1114b1};return _0x1562f3['checkerInf'+'o']=_0x485953?{'name':_0x485953[_0x524334(0x14f)],'description':_0x485953[_0x524334(0x127)+'n'],'compliance':_0x4549c7[_0x524334(0x145)]>0x0?_0x4549c7:undefined}:undefined,_0x1562f3;});}[a20_0x617dd5(0x15e)+a20_0x617dd5(0x150)+'ByComplian'+'ce'](_0x3bbc4c){const _0x312ff9=a20_0x617dd5,_0x58a3a9={};_0x58a3a9[_0x312ff9(0x10b)]=function(_0x438051,_0x4594be){return _0x438051===_0x4594be;};const _0x10a806=_0x58a3a9,_0x36dd54=new Map();for(const _0x14de3f of _0x3bbc4c){const _0x1b2e0a=this[_0x312ff9(0x141)+_0x312ff9(0x156)](_0x14de3f[_0x312ff9(0x139)]);if(_0x10a806[_0x312ff9(0x10b)](_0x1b2e0a['length'],0x0)){const _0x215843='기타';!_0x36dd54['has'](_0x215843)&&_0x36dd54[_0x312ff9(0x160)](_0x215843,[]),_0x36dd54[_0x312ff9(0x125)](_0x215843)[_0x312ff9(0x116)](_0x14de3f);}else for(const _0xdb4c7d of _0x1b2e0a){const _0x5b687b=''+_0xdb4c7d[_0x312ff9(0x149)][_0x312ff9(0x14f)]+(_0xdb4c7d[_0x312ff9(0x149)][_0x312ff9(0x146)]?'\x20('+_0xdb4c7d[_0x312ff9(0x149)][_0x312ff9(0x146)]+')':'');!_0x36dd54['has'](_0x5b687b)&&_0x36dd54[_0x312ff9(0x160)](_0x5b687b,[]),_0x36dd54[_0x312ff9(0x125)](_0x5b687b)[_0x312ff9(0x116)](_0x14de3f);}}return _0x36dd54;}[a20_0x617dd5(0x10d)+'heckerCoun'+'t'](){const _0x47833e=a20_0x617dd5;return this[_0x47833e(0x13f)+'he'][_0x47833e(0x133)];}async['refreshCac'+'he'](){const _0x426788=a20_0x617dd5;this[_0x426788(0x13f)+'he'][_0x426788(0x15b)]();if(a20_0x397cf4[_0x426788(0x10c)](this[_0x426788(0x10a)+'r'])){const _0x4f6eca=a20_0x397cf4[_0x426788(0x15d)+'c'](this[_0x426788(0x10a)+'r']);for(const _0x50e28b of _0x4f6eca){a20_0x397cf4[_0x426788(0x142)](a20_0x204dac[_0x426788(0x111)](this[_0x426788(0x10a)+'r'],_0x50e28b));}}this[_0x426788(0x119)+'d']=![],await this[_0x426788(0x119)]();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x2fe43f=a21_0x2a8b;(function(_0x4da485,_0x209a93){const _0x56c4a3=a21_0x2a8b,_0x32f282=_0x4da485();while(!![]){try{const _0x2cf9b8=-parseInt(_0x56c4a3(0xa0))/0x1*(-parseInt(_0x56c4a3(0x96))/0x2)+-parseInt(_0x56c4a3(0x94))/0x3+parseInt(_0x56c4a3(0x8f))/0x4+parseInt(_0x56c4a3(0xa1))/0x5+-parseInt(_0x56c4a3(0x98))/0x6+parseInt(_0x56c4a3(0x99))/0x7*(-parseInt(_0x56c4a3(0xa3))/0x8)+parseInt(_0x56c4a3(0x91))/0x9;if(_0x2cf9b8===_0x209a93)break;else _0x32f282['push'](_0x32f282['shift']());}catch(_0x257264){_0x32f282['push'](_0x32f282['shift']());}}}(a21_0x146b,0xa4674));const a21_0x11cae0=(function(){let _0x1ec442=!![];return function(_0x3af617,_0x23fce4){const _0x8fd592=_0x1ec442?function(){const _0x42fb11=a21_0x2a8b;if(_0x23fce4){const _0x459eee=_0x23fce4[_0x42fb11(0x9a)](_0x3af617,arguments);return _0x23fce4=null,_0x459eee;}}:function(){};return _0x1ec442=![],_0x8fd592;};}()),a21_0x1a132c=a21_0x11cae0(this,function(){const _0xe0b737=a21_0x2a8b;return a21_0x1a132c[_0xe0b737(0x92)]()[_0xe0b737(0x9e)](_0xe0b737(0x93)+'+$')[_0xe0b737(0x92)]()['constructo'+'r'](a21_0x1a132c)['search'](_0xe0b737(0x93)+'+$');});function a21_0x2a8b(_0x577ec,_0x362d8b){_0x577ec=_0x577ec-0x8e;const _0x41de76=a21_0x146b();let _0x1a132c=_0x41de76[_0x577ec];return _0x1a132c;}function a21_0x146b(){const _0x1d3412=['16008WtoWPQ','generate','2440356jEdIwZ','create','20381220rTIeAK','toString','(((.+)+)+)','2944941sRfxQy','apiKey','212TOwcpz','model','6534390XsmPBa','3584BPplqI','apply','text','client','type','search','messages','5443KKiGey','1584965NmuPLk','content'];a21_0x146b=function(){return _0x1d3412;};return a21_0x146b();}a21_0x1a132c();import a21_0x2e3270 from'@anthropic-ai/sdk';export class AnthropicProvider{['model'];['client'];constructor(_0x478f3a,_0x44c8ae){const _0x24425a=a21_0x2a8b;this[_0x24425a(0x97)]=_0x44c8ae;const _0x16d031={};_0x16d031[_0x24425a(0x95)]=_0x478f3a,this[_0x24425a(0x9c)]=new a21_0x2e3270(_0x16d031);}async[a21_0x2fe43f(0x8e)](_0x2648fe){const _0x4c58ab=a21_0x2fe43f,_0x520d34={};_0x520d34['role']='user',_0x520d34[_0x4c58ab(0xa2)]=_0x2648fe;const _0x1793b6=await this[_0x4c58ab(0x9c)][_0x4c58ab(0x9f)][_0x4c58ab(0x90)]({'model':this[_0x4c58ab(0x97)],'max_tokens':0x1000,'messages':[_0x520d34]});if(_0x1793b6[_0x4c58ab(0xa2)][0x0][_0x4c58ab(0x9d)]===_0x4c58ab(0x9b))return _0x1793b6[_0x4c58ab(0xa2)][0x0][_0x4c58ab(0x9b)];return'';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x543d74=a22_0x3f72;(function(_0x22640b,_0x473db5){const _0x20dff0=a22_0x3f72,_0x75ab7a=_0x22640b();while(!![]){try{const _0x62191c=-parseInt(_0x20dff0(0x94))/0x1*(-parseInt(_0x20dff0(0xa8))/0x2)+-parseInt(_0x20dff0(0xa1))/0x3*(-parseInt(_0x20dff0(0x98))/0x4)+parseInt(_0x20dff0(0x8e))/0x5*(parseInt(_0x20dff0(0x9d))/0x6)+parseInt(_0x20dff0(0x88))/0x7+parseInt(_0x20dff0(0xa7))/0x8*(parseInt(_0x20dff0(0x89))/0x9)+parseInt(_0x20dff0(0x97))/0xa+-parseInt(_0x20dff0(0xaa))/0xb;if(_0x62191c===_0x473db5)break;else _0x75ab7a['push'](_0x75ab7a['shift']());}catch(_0x259c12){_0x75ab7a['push'](_0x75ab7a['shift']());}}}(a22_0x39a4,0x74d29));function a22_0x3f72(_0x4aa594,_0x2436d0){_0x4aa594=_0x4aa594-0x87;const _0x1ce59a=a22_0x39a4();let _0x5f2236=_0x1ce59a[_0x4aa594];return _0x5f2236;}const a22_0x82c02f=(function(){let _0x541182=!![];return function(_0x2e6888,_0x5cc3d0){const _0x27cb52=_0x541182?function(){if(_0x5cc3d0){const _0x54fc66=_0x5cc3d0['apply'](_0x2e6888,arguments);return _0x5cc3d0=null,_0x54fc66;}}:function(){};return _0x541182=![],_0x27cb52;};}()),a22_0x5f2236=a22_0x82c02f(this,function(){const _0x3bb326=a22_0x3f72,_0x1f7bc4={};_0x1f7bc4[_0x3bb326(0xa6)]=_0x3bb326(0x92)+'+$';const _0x4d6021=_0x1f7bc4;return a22_0x5f2236[_0x3bb326(0xa4)]()[_0x3bb326(0x9f)](_0x3bb326(0x92)+'+$')['toString']()['constructo'+'r'](a22_0x5f2236)[_0x3bb326(0x9f)](_0x4d6021['IoBOP']);});a22_0x5f2236();import{BedrockRuntimeClient,InvokeModelCommand}from'@aws-sdk/client-bedrock-runtime';function a22_0x39a4(){const _0x55f510=['accessKeyI','parse','toString','decode','IoBOP','8ROoFts','2zSbRAb','stringify','28322965iVYkyI','credential','messages','3772111emCAhX','7108551gjXGHx','send','23-05-31','content','anthropic_','5FTbCvA','applicatio','role','sessionTok','(((.+)+)+)','text','824893WCkHEm','client','model','2980990qSfeYu','16LDzFts','max_tokens','n/json','region','secretAcce','2461512kxjnEh','body','search','generate','143523pDehjG'];a22_0x39a4=function(){return _0x55f510;};return a22_0x39a4();}export class BedrockProvider{['client'];[a22_0x543d74(0x96)];constructor(_0x2290a1,_0x1f21a3,_0x49efb3,_0xd4b30,_0x4467fe){const _0x25c388=a22_0x543d74;this[_0x25c388(0x96)]=_0x2290a1;const _0x14040b={};_0x14040b[_0x25c388(0x9b)]=_0x1f21a3;const _0x348a5e=_0x14040b;if(_0x49efb3&&_0xd4b30){const _0x2928bb={};_0x2928bb[_0x25c388(0xa2)+'d']=_0x49efb3,_0x2928bb[_0x25c388(0x9c)+'ssKey']=_0xd4b30,_0x2928bb[_0x25c388(0x91)+'en']=_0x4467fe,_0x348a5e[_0x25c388(0xab)+'s']=_0x2928bb;}this[_0x25c388(0x95)]=new BedrockRuntimeClient(_0x348a5e);}async[a22_0x543d74(0xa0)](_0x57c54d){const _0x1f433f=a22_0x543d74,_0x223633={};_0x223633['type']=_0x1f433f(0x93),_0x223633[_0x1f433f(0x93)]=_0x57c54d;const _0x5db821={};_0x5db821[_0x1f433f(0x90)]='user',_0x5db821[_0x1f433f(0x8c)]=[_0x223633];const _0x251b9f={};_0x251b9f[_0x1f433f(0x8d)+'version']='bedrock-20'+_0x1f433f(0x8b),_0x251b9f[_0x1f433f(0x99)]=0x1000,_0x251b9f[_0x1f433f(0x87)]=[_0x5db821];const _0xf5cab4=_0x251b9f,_0x4f7429=new InvokeModelCommand({'modelId':this[_0x1f433f(0x96)],'contentType':_0x1f433f(0x8f)+_0x1f433f(0x9a),'accept':_0x1f433f(0x8f)+_0x1f433f(0x9a),'body':JSON[_0x1f433f(0xa9)](_0xf5cab4)}),_0x59ec13=await this[_0x1f433f(0x95)][_0x1f433f(0x8a)](_0x4f7429),_0x54ff3b=new TextDecoder()[_0x1f433f(0xa5)](_0x59ec13[_0x1f433f(0x9e)]),_0x6d7383=JSON[_0x1f433f(0xa3)](_0x54ff3b);if(_0x6d7383[_0x1f433f(0x8c)]&&_0x6d7383['content'][0x0]&&_0x6d7383[_0x1f433f(0x8c)][0x0][_0x1f433f(0x93)])return _0x6d7383['content'][0x0][_0x1f433f(0x93)];return'';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a23_0x2bed(_0x1a4a38,_0x262ef1){_0x1a4a38=_0x1a4a38-0x177;const _0x49eb48=a23_0x3775();let _0x351bec=_0x49eb48[_0x1a4a38];return _0x351bec;}const a23_0x26ad4d=a23_0x2bed;(function(_0x27bc26,_0x4d66e3){const _0x38da85=a23_0x2bed,_0x69d372=_0x27bc26();while(!![]){try{const _0x493976=parseInt(_0x38da85(0x184))/0x1*(parseInt(_0x38da85(0x179))/0x2)+-parseInt(_0x38da85(0x185))/0x3+-parseInt(_0x38da85(0x180))/0x4*(parseInt(_0x38da85(0x18d))/0x5)+parseInt(_0x38da85(0x187))/0x6+parseInt(_0x38da85(0x188))/0x7*(-parseInt(_0x38da85(0x186))/0x8)+-parseInt(_0x38da85(0x18e))/0x9+-parseInt(_0x38da85(0x181))/0xa*(-parseInt(_0x38da85(0x17b))/0xb);if(_0x493976===_0x4d66e3)break;else _0x69d372['push'](_0x69d372['shift']());}catch(_0x30787c){_0x69d372['push'](_0x69d372['shift']());}}}(a23_0x3775,0xbe121));const a23_0x2e42e8=(function(){let _0x5ddb5f=!![];return function(_0x39fa45,_0x3dd026){const _0x37e2c7=_0x5ddb5f?function(){const _0x12d08b=a23_0x2bed;if(_0x3dd026){const _0x5646ff=_0x3dd026[_0x12d08b(0x178)](_0x39fa45,arguments);return _0x3dd026=null,_0x5646ff;}}:function(){};return _0x5ddb5f=![],_0x37e2c7;};}()),a23_0x351bec=a23_0x2e42e8(this,function(){const _0x473a62=a23_0x2bed;return a23_0x351bec['toString']()[_0x473a62(0x17a)](_0x473a62(0x183)+'+$')[_0x473a62(0x17d)]()[_0x473a62(0x18b)+'r'](a23_0x351bec)[_0x473a62(0x17a)](_0x473a62(0x183)+'+$');});a23_0x351bec();import{GoogleGenerativeAI}from'@google/generative-ai';function a23_0x3775(){const _0x33dff9=['genAI','constructo','response','3630BXTUoQ','11932218dAUNpB','getGenerat','apply','1411808mDDOdN','search','11DUCJPl','text','toString','iveModel','model','4244CoNqIy','12926390onBYUh','generate','(((.+)+)+)','2lmSiIK','266778ZBMUJz','8XIqCfB','2473092zywdCc','1071602UeSiiQ','generateCo'];a23_0x3775=function(){return _0x33dff9;};return a23_0x3775();}export class GeminiProvider{['genAI'];[a23_0x26ad4d(0x17f)];constructor(_0x26ee1f,_0x2cf38f){const _0x2ce782=a23_0x26ad4d;this[_0x2ce782(0x18a)]=new GoogleGenerativeAI(_0x26ee1f),this[_0x2ce782(0x17f)]=_0x2cf38f;}async[a23_0x26ad4d(0x182)](_0x343cae){const _0x24f8dc=a23_0x26ad4d,_0x5ef16e=this['genAI'][_0x24f8dc(0x177)+_0x24f8dc(0x17e)]({'model':this['model']}),_0x2e7f99=await _0x5ef16e[_0x24f8dc(0x189)+'ntent'](_0x343cae),_0x19a2c5=await _0x2e7f99[_0x24f8dc(0x18c)];return _0x19a2c5[_0x24f8dc(0x17c)]();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x50ff8d,_0x20adc8){var _0x38d368=a24_0x1ee8,_0x3325a7=_0x50ff8d();while(!![]){try{var _0x930ad5=parseInt(_0x38d368(0x95))/0x1+-parseInt(_0x38d368(0x8b))/0x2*(parseInt(_0x38d368(0xaf))/0x3)+-parseInt(_0x38d368(0xa9))/0x4*(parseInt(_0x38d368(0x91))/0x5)+-parseInt(_0x38d368(0x94))/0x6*(parseInt(_0x38d368(0x98))/0x7)+parseInt(_0x38d368(0x9a))/0x8*(-parseInt(_0x38d368(0xac))/0x9)+-parseInt(_0x38d368(0x8f))/0xa+-parseInt(_0x38d368(0xab))/0xb*(-parseInt(_0x38d368(0x93))/0xc);if(_0x930ad5===_0x20adc8)break;else _0x3325a7['push'](_0x3325a7['shift']());}catch(_0x5a4650){_0x3325a7['push'](_0x3325a7['shift']());}}}(a24_0x4eaa,0xbcaec));var a24_0x35f7f9=(function(){var _0x1a7092=!![];return function(_0x46ec1a,_0x348566){var _0x5537f1=_0x1a7092?function(){var _0x458ca3=a24_0x1ee8;if(_0x348566){var _0x600446=_0x348566[_0x458ca3(0x99)](_0x46ec1a,arguments);return _0x348566=null,_0x600446;}}:function(){};return _0x1a7092=![],_0x5537f1;};}()),a24_0x28f338=a24_0x35f7f9(this,function(){var _0x5d9af4=a24_0x1ee8,_0x2433f8={};_0x2433f8[_0x5d9af4(0x9d)]='(((.+)+)+)'+'+$';var _0x364ded=_0x2433f8;return a24_0x28f338[_0x5d9af4(0x92)]()['search'](_0x5d9af4(0x9b)+'+$')[_0x5d9af4(0x92)]()[_0x5d9af4(0x8c)+'r'](a24_0x28f338)['search'](_0x364ded[_0x5d9af4(0x9d)]);});a24_0x28f338();import{appConfig}from'../../config/appConfig.js';function a24_0x4eaa(){var _0x591b82=['constructo','apiKey','gemini','12352450gvXhoi','anthropic','50575QmQYus','toString','4404lFwIMC','3194628bkpcYi','1158371ghYQeT','info','ollama','14ijJtej','apply','16xlkvrF','(((.+)+)+)','Bedrock\x20Pr','ugSeB','openai','sessionTok','AI\x20Provide','region','aws','Using\x20Anth','ssKey','vider\x20conf','Using\x20Olla','warn','Using\x20Gemi','164QaWYEJ','l:\x20','108944kTtNaL','1068021oZlDmx','ni\x20Provide','ovider\x20(mo','3903pAcPge','r\x20(model:\x20','baseUrl','igured.','ma\x20Provide','model','Using\x20Open','secretAcce','1642pYGUyp'];a24_0x4eaa=function(){return _0x591b82;};return a24_0x4eaa();}import{OllamaProvider}from'./OllamaProvider.js';function a24_0x1ee8(_0x5bd786,_0x4ffacc){_0x5bd786=_0x5bd786-0x84;var _0x541893=a24_0x4eaa();var _0x28f338=_0x541893[_0x5bd786];return _0x28f338;}import{OpenAIProvider}from'./OpenAIProvider.js';import{AnthropicProvider}from'./AnthropicProvider.js';import{GeminiProvider}from'./GeminiProvider.js';import{BedrockProvider}from'./BedrockProvider.js';import{logger}from'../../utils/logger.js';export class LLMFactory{static['getProvide'+'r'](){var _0x202c8a=a24_0x1ee8;if(appConfig[_0x202c8a(0x9e)])return logger[_0x202c8a(0x96)](_0x202c8a(0x89)+_0x202c8a(0xa0)+'r\x20(model:\x20'+appConfig['openai'][_0x202c8a(0x88)]+')'),new OpenAIProvider(appConfig[_0x202c8a(0x9e)][_0x202c8a(0x8d)],appConfig[_0x202c8a(0x9e)]['model']);if(appConfig[_0x202c8a(0x90)])return logger[_0x202c8a(0x96)](_0x202c8a(0xa3)+'ropic\x20Prov'+'ider\x20(mode'+_0x202c8a(0xaa)+appConfig[_0x202c8a(0x90)]['model']+')'),new AnthropicProvider(appConfig[_0x202c8a(0x90)][_0x202c8a(0x8d)],appConfig[_0x202c8a(0x90)][_0x202c8a(0x88)]);if(appConfig[_0x202c8a(0x8e)])return logger[_0x202c8a(0x96)](_0x202c8a(0xa8)+_0x202c8a(0xad)+_0x202c8a(0x84)+appConfig[_0x202c8a(0x8e)][_0x202c8a(0x88)]+')'),new GeminiProvider(appConfig[_0x202c8a(0x8e)][_0x202c8a(0x8d)],appConfig[_0x202c8a(0x8e)][_0x202c8a(0x88)]);if(appConfig[_0x202c8a(0xa2)])return logger[_0x202c8a(0x96)]('Using\x20AWS\x20'+_0x202c8a(0x9c)+_0x202c8a(0xae)+'del:\x20'+appConfig['aws'][_0x202c8a(0x88)]+')'),new BedrockProvider(appConfig[_0x202c8a(0xa2)][_0x202c8a(0x88)],appConfig[_0x202c8a(0xa2)][_0x202c8a(0xa1)],appConfig['aws']['accessKeyI'+'d'],appConfig[_0x202c8a(0xa2)][_0x202c8a(0x8a)+_0x202c8a(0xa4)],appConfig[_0x202c8a(0xa2)][_0x202c8a(0x9f)+'en']);if(appConfig[_0x202c8a(0x97)]&&appConfig['ollama'][_0x202c8a(0x85)])return logger[_0x202c8a(0x96)](_0x202c8a(0xa6)+_0x202c8a(0x87)+_0x202c8a(0x84)+appConfig[_0x202c8a(0x97)][_0x202c8a(0x88)]+')'),new OllamaProvider(appConfig['ollama']['baseUrl'],appConfig[_0x202c8a(0x97)][_0x202c8a(0x88)]);return logger[_0x202c8a(0xa7)]('No\x20LLM\x20Pro'+_0x202c8a(0xa5)+_0x202c8a(0x86)),null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x23690f,_0x5032a3){var _0x23a03c=a25_0x3cd3,_0x190635=_0x23690f();while(!![]){try{var _0x48af2c=-parseInt(_0x23a03c(0x8d))/0x1+-parseInt(_0x23a03c(0x8e))/0x2+-parseInt(_0x23a03c(0x91))/0x3*(-parseInt(_0x23a03c(0x96))/0x4)+parseInt(_0x23a03c(0x8b))/0x5*(parseInt(_0x23a03c(0x94))/0x6)+parseInt(_0x23a03c(0x93))/0x7*(-parseInt(_0x23a03c(0x89))/0x8)+-parseInt(_0x23a03c(0x92))/0x9*(-parseInt(_0x23a03c(0x8f))/0xa)+-parseInt(_0x23a03c(0x97))/0xb*(-parseInt(_0x23a03c(0x98))/0xc);if(_0x48af2c===_0x5032a3)break;else _0x190635['push'](_0x190635['shift']());}catch(_0x27d5cf){_0x190635['push'](_0x190635['shift']());}}}(a25_0x2637,0x55f90));var a25_0x9ff28f=(function(){var _0x154231=!![];return function(_0x309366,_0x2bcc81){var _0x927f1f=_0x154231?function(){var _0x945ca=a25_0x3cd3;if(_0x2bcc81){var _0x246217=_0x2bcc81[_0x945ca(0x8c)](_0x309366,arguments);return _0x2bcc81=null,_0x246217;}}:function(){};return _0x154231=![],_0x927f1f;};}()),a25_0x289661=a25_0x9ff28f(this,function(){var _0x4d098b=a25_0x3cd3;return a25_0x289661[_0x4d098b(0x90)]()[_0x4d098b(0x8a)](_0x4d098b(0x95)+'+$')[_0x4d098b(0x90)]()['constructo'+'r'](a25_0x289661)[_0x4d098b(0x8a)](_0x4d098b(0x95)+'+$');});function a25_0x2637(){var _0xddab24=['4vPBJHL','3531tIvqxd','612ciXnGr','4361208hvBMbF','search','5sTVdEu','apply','133895HGmTGr','421114hQgkPk','5470ltfcOU','toString','1792743wyKrDf','9819mGpFVe','7TOSNEj','186108vqQhPA','(((.+)+)+)'];a25_0x2637=function(){return _0xddab24;};return a25_0x2637();}function a25_0x3cd3(_0x1e6e1b,_0x3933ea){_0x1e6e1b=_0x1e6e1b-0x89;var _0xcd0120=a25_0x2637();var _0x289661=_0xcd0120[_0x1e6e1b];return _0x289661;}a25_0x289661();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a26_0x3dbf6e=a26_0x4ecc;(function(_0x29dff1,_0x230349){const _0x321507=a26_0x4ecc,_0xcd27bc=_0x29dff1();while(!![]){try{const _0x24cb33=parseInt(_0x321507(0xde))/0x1*(parseInt(_0x321507(0xd8))/0x2)+-parseInt(_0x321507(0xe6))/0x3*(parseInt(_0x321507(0xd7))/0x4)+-parseInt(_0x321507(0xe3))/0x5*(parseInt(_0x321507(0xed))/0x6)+parseInt(_0x321507(0xd3))/0x7+parseInt(_0x321507(0xdb))/0x8+parseInt(_0x321507(0xd5))/0x9+parseInt(_0x321507(0xf0))/0xa*(-parseInt(_0x321507(0xf4))/0xb);if(_0x24cb33===_0x230349)break;else _0xcd27bc['push'](_0xcd27bc['shift']());}catch(_0x321f8d){_0xcd27bc['push'](_0xcd27bc['shift']());}}}(a26_0x27b5,0x5604b));function a26_0x4ecc(_0x1a48cd,_0x4431b3){_0x1a48cd=_0x1a48cd-0xd3;const _0x135cd4=a26_0x27b5();let _0x5edc54=_0x135cd4[_0x1a48cd];return _0x5edc54;}const a26_0x2f9e39=(function(){let _0x421957=!![];return function(_0x3515ac,_0x54b465){const _0xfdc8bb=_0x421957?function(){if(_0x54b465){const _0x211881=_0x54b465['apply'](_0x3515ac,arguments);return _0x54b465=null,_0x211881;}}:function(){};return _0x421957=![],_0xfdc8bb;};}()),a26_0x5edc54=a26_0x2f9e39(this,function(){const _0xc81cb3=a26_0x4ecc;return a26_0x5edc54['toString']()['search'](_0xc81cb3(0xf3)+'+$')['toString']()[_0xc81cb3(0xdd)+'r'](a26_0x5edc54)[_0xc81cb3(0xdc)](_0xc81cb3(0xf3)+'+$');});a26_0x5edc54();import a26_0x171f12 from'axios';function a26_0x27b5(){const _0x5ea137=['generate','321345OCKjwQ','ETIMEDOUT','418292ZFPOKd','2FvPBGh','Ollama\x20ser','\x20-\x20','4280920MZYIRB','search','constructo','452122fzYKJz','r.\x20Please\x20','baseUrl','code','ECONNREFUS','101635uInhZq','ver\x20connec','Ollama\x20API','9GOUPrr','ate','post','is\x20running','response','stringify','model','150IFbhYD','/api/gener','ffsoV','246330ixGTrN','data','\x20error:\x20','(((.+)+)+)','209YDrAiQ','timeout','lama\x20serve','4335170eLOKsy'];a26_0x27b5=function(){return _0x5ea137;};return a26_0x27b5();}export class OllamaProvider{['baseUrl'];[a26_0x3dbf6e(0xec)];constructor(_0x4e9438,_0x1f4c20){const _0x550478=a26_0x3dbf6e;this[_0x550478(0xe0)]=_0x4e9438,this[_0x550478(0xec)]=_0x1f4c20;}async[a26_0x3dbf6e(0xd4)](_0x3dcf6b){const _0x4e255b=a26_0x3dbf6e,_0x18138e={};_0x18138e[_0x4e255b(0xef)]=_0x4e255b(0xe2)+'ED';const _0x281e79=_0x18138e;try{const _0x582dd3={};_0x582dd3[_0x4e255b(0xf5)]=0x493e0;const _0xafac0b=await a26_0x171f12[_0x4e255b(0xe8)](this[_0x4e255b(0xe0)]+(_0x4e255b(0xee)+_0x4e255b(0xe7)),{'model':this[_0x4e255b(0xec)],'prompt':_0x3dcf6b,'stream':![]},_0x582dd3);return _0xafac0b[_0x4e255b(0xf1)][_0x4e255b(0xea)];}catch(_0x2c6c34){if(a26_0x171f12['isAxiosErr'+'or'](_0x2c6c34)){if(_0x2c6c34[_0x4e255b(0xe1)]===_0x281e79['ffsoV'])throw new Error('Cannot\x20con'+'nect\x20to\x20Ol'+_0x4e255b(0xf6)+_0x4e255b(0xdf)+'check\x20if\x20t'+'he\x20server\x20'+_0x4e255b(0xe9)+'.');else{if(_0x2c6c34[_0x4e255b(0xe1)]===_0x4e255b(0xd6))throw new Error(_0x4e255b(0xd9)+_0x4e255b(0xe4)+'tion\x20timeo'+'ut');else{if(_0x2c6c34[_0x4e255b(0xea)])throw new Error(_0x4e255b(0xe5)+_0x4e255b(0xf2)+_0x2c6c34[_0x4e255b(0xea)]['status']+_0x4e255b(0xda)+JSON[_0x4e255b(0xeb)](_0x2c6c34[_0x4e255b(0xea)][_0x4e255b(0xf1)]));}}}throw _0x2c6c34;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a27_0x5b4a39=a27_0x356b;(function(_0x387ceb,_0x118448){const _0x17201e=a27_0x356b,_0x49795a=_0x387ceb();while(!![]){try{const _0x2baf53=-parseInt(_0x17201e(0xfa))/0x1*(-parseInt(_0x17201e(0xf7))/0x2)+-parseInt(_0x17201e(0x102))/0x3+parseInt(_0x17201e(0xf9))/0x4+parseInt(_0x17201e(0xfe))/0x5*(-parseInt(_0x17201e(0x100))/0x6)+-parseInt(_0x17201e(0xff))/0x7+parseInt(_0x17201e(0xf1))/0x8*(-parseInt(_0x17201e(0x101))/0x9)+parseInt(_0x17201e(0xf4))/0xa;if(_0x2baf53===_0x118448)break;else _0x49795a['push'](_0x49795a['shift']());}catch(_0x3921e8){_0x49795a['push'](_0x49795a['shift']());}}}(a27_0x5a2f,0xbee98));const a27_0x242f7d=(function(){let _0x22f02b=!![];return function(_0xfe6525,_0x14f39a){const _0x807dd7=_0x22f02b?function(){const _0x3bba0f=a27_0x356b;if(_0x14f39a){const _0x2212e8=_0x14f39a[_0x3bba0f(0xfc)](_0xfe6525,arguments);return _0x14f39a=null,_0x2212e8;}}:function(){};return _0x22f02b=![],_0x807dd7;};}()),a27_0x4a7707=a27_0x242f7d(this,function(){const _0x2a2e08=a27_0x356b;return a27_0x4a7707[_0x2a2e08(0xf2)]()[_0x2a2e08(0xf6)](_0x2a2e08(0xef)+'+$')[_0x2a2e08(0xf2)]()[_0x2a2e08(0xea)+'r'](a27_0x4a7707)[_0x2a2e08(0xf6)]('(((.+)+)+)'+'+$');});function a27_0x5a2f(){const _0x27c587=['1885617klHFha','constructo','content','client','choices','completion','(((.+)+)+)','apiKey','548296dhwkdF','toString','user','8777720bOkPlr','role','search','2dJnjTL','message','2601412iCrKEU','1347293yjgIxa','model','apply','chat','5nZdoKy','6021561SaCDax','3216858Jgbhgx','9qCvDGF'];a27_0x5a2f=function(){return _0x27c587;};return a27_0x5a2f();}a27_0x4a7707();function a27_0x356b(_0xc7da37,_0x1b29cd){_0xc7da37=_0xc7da37-0xea;const _0x5859e4=a27_0x5a2f();let _0x4a7707=_0x5859e4[_0xc7da37];return _0x4a7707;}import a27_0x17f202 from'openai';export class OpenAIProvider{[a27_0x5b4a39(0xfb)];[a27_0x5b4a39(0xec)];constructor(_0x51837d,_0x2882f1){const _0x532361=a27_0x5b4a39;this[_0x532361(0xfb)]=_0x2882f1;const _0x221714={};_0x221714[_0x532361(0xf0)]=_0x51837d,this[_0x532361(0xec)]=new a27_0x17f202(_0x221714);}async['generate'](_0x645e0c){const _0x46c1b5=a27_0x5b4a39,_0x3d6c7b={};_0x3d6c7b[_0x46c1b5(0xf5)]=_0x46c1b5(0xf3),_0x3d6c7b[_0x46c1b5(0xeb)]=_0x645e0c;const _0x1a858d=await this[_0x46c1b5(0xec)][_0x46c1b5(0xfd)][_0x46c1b5(0xee)+'s']['create']({'model':this[_0x46c1b5(0xfb)],'messages':[_0x3d6c7b]});return _0x1a858d[_0x46c1b5(0xed)][0x0][_0x46c1b5(0xf8)][_0x46c1b5(0xeb)]||'';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a28_0x42be(_0xb25bbd,_0x348ea3){_0xb25bbd=_0xb25bbd-0x16a;const _0x570951=a28_0xf565();let _0x1f745b=_0x570951[_0xb25bbd];return _0x1f745b;}const a28_0x58b8e6=a28_0x42be;(function(_0x113832,_0x1908b7){const _0x54424c=a28_0x42be,_0x9ea5c8=_0x113832();while(!![]){try{const _0x369d5e=-parseInt(_0x54424c(0x186))/0x1+-parseInt(_0x54424c(0x1d5))/0x2*(parseInt(_0x54424c(0x1d2))/0x3)+parseInt(_0x54424c(0x1b4))/0x4*(parseInt(_0x54424c(0x1d6))/0x5)+parseInt(_0x54424c(0x1a3))/0x6*(-parseInt(_0x54424c(0x16d))/0x7)+parseInt(_0x54424c(0x1e2))/0x8*(parseInt(_0x54424c(0x198))/0x9)+parseInt(_0x54424c(0x1d7))/0xa+parseInt(_0x54424c(0x1a9))/0xb;if(_0x369d5e===_0x1908b7)break;else _0x9ea5c8['push'](_0x9ea5c8['shift']());}catch(_0x3cc969){_0x9ea5c8['push'](_0x9ea5c8['shift']());}}}(a28_0xf565,0x23591));const a28_0x22f1a7=(function(){let _0x1fa55c=!![];return function(_0xac22d9,_0x15f1f1){const _0x139aad=_0x1fa55c?function(){const _0x2b31d1=a28_0x42be;if(_0x15f1f1){const _0x25fcf3=_0x15f1f1[_0x2b31d1(0x1f0)](_0xac22d9,arguments);return _0x15f1f1=null,_0x25fcf3;}}:function(){};return _0x1fa55c=![],_0x139aad;};}()),a28_0x1f745b=a28_0x22f1a7(this,function(){const _0x5f94f2=a28_0x42be;return a28_0x1f745b[_0x5f94f2(0x1d9)]()[_0x5f94f2(0x1c6)](_0x5f94f2(0x16f)+'+$')['toString']()[_0x5f94f2(0x183)+'r'](a28_0x1f745b)[_0x5f94f2(0x1c6)](_0x5f94f2(0x16f)+'+$');});a28_0x1f745b();import{logger}from'../utils/logger.js';function a28_0xf565(){const _0x2d2086=['ode\x20qualit','es:\x0a','ure\x20code:\x0a','te\x20a\x20simpl','ability\x0a5.','\x0a\x0aThe\x20brie','\x20all\x20secur','cureCode','``java\x0a','content','n\x20is\x20disab','ror','\x20major\x20vul','ents:\x0a1.\x20G','Please\x20wri','utomated\x20s','search','.\x20Maintain','eYSRm','lish\x20compa','alysisBrie','Brief\x20desc','discovered','2.\x20Maintai','ollowing\x20o','error','t\x20found.\x20P','fing\x20shoul','24jYHQdS','getProvide','ractices\x0a4','44476crtxbR','35bPgvfW','2243120QLAxaL','t\x20found.\x20A','toString','\x20security\x20','ity\x20best\x20p','\x20code\x20and\x20','pply\x20secur','briefing\x20s','verity\x0a2.\x20','e\x20and\x20clea','ity\x20analys','576RfqBXo','\x20generatio','ude:\x0a1.\x20Ma','lain\x20secur','\x20briefing.','\x20secure\x20co','message','assessment','ately\x20200-','\x0a\x0aRequirem','00-400\x20cha','he\x20briefin','s\x20Results:','ief','apply','generate','Failed\x20to\x20','e:\x0a```java','\x20the\x20follo','LLM\x20config','s\x20briefing','HFedN','neration\x20s','wing\x20secur','h\x20based\x20on','iefing.','Unknown\x20er','453824nyvBPz','t\x0a\x0aPlease\x20','(((.+)+)+)','Code:\x0a```j','overed\x20Vul','nerabiliti','\x0a```\x0a\x0aSecu','ments\x0a2.\x20F','ava\x0a','re\x20code\x20ba','\x20functiona','\x0a```\x0a\x0aThe\x20','stringify','\x0a1.\x20Number','ters.','\x0aOriginal\x20','provider','de\x20(withou','abilities\x0a','\x20briefing:','ring\x20the\x20f','ity\x20improv','constructo','generateSe','led.','267122wfAvel','t\x20found.\x20B','nalysis\x20br','de\x20and\x20sec','classifica','success','erate\x20secu','se\x20write\x20t','ty\x20improve','jor\x20securi','tices\x0a4.\x20C','Please\x20gen','\x20Add\x20comme','riginal\x20co','ixed\x20vulne','generateAn','ecure\x20code','ions\x20or\x20ad','3501WNEvnc','ements\x0a\x0aPl','JgRTB','ing\x20in\x20Eng','ditional\x20t','all\x20securi','ease\x20retur','y\x20improvem','d\x20security','ription\x20of','generate\x20L','12nsqOfn','riefing\x20ge','improvemen','e\x20original','n\x20only\x20the','uration\x20no','4182288hAFsLs','\x0a3.\x20Applie','n\x20approxim','g\x20in\x20appro','racters.','briefing\x20i',':\x0a\x0aAnalysi','t\x20found.','n\x20the\x20same','generate\x20s','is\x20results','49684rXDduW','t\x20explanat'];a28_0xf565=function(){return _0x2d2086;};return a28_0xf565();}import{LLMFactory}from'./llm/LLMFactory.js';export class LLMService{[a28_0x58b8e6(0x17d)];constructor(){const _0x5551c5=a28_0x58b8e6;this[_0x5551c5(0x17d)]=LLMFactory[_0x5551c5(0x1d3)+'r']();}async[a28_0x58b8e6(0x195)+a28_0x58b8e6(0x1ca)+'f'](_0x5d4ace){const _0x1e2fc8=a28_0x58b8e6,_0x20f8fa={};_0x20f8fa['eYSRm']=_0x1e2fc8(0x1f5)+_0x1e2fc8(0x1a8)+_0x1e2fc8(0x1d0)+'lease\x20revi'+'ew\x20the\x20raw'+'\x20analysis\x20'+'results.',_0x20f8fa[_0x1e2fc8(0x19a)]=function(_0x33a523,_0x3fe25f){return _0x33a523 instanceof _0x3fe25f;};const _0x2fa416=_0x20f8fa;if(!this[_0x1e2fc8(0x17d)]){const _0x54588c={};return _0x54588c[_0x1e2fc8(0x1bf)]=_0x2fa416[_0x1e2fc8(0x1c8)],_0x54588c[_0x1e2fc8(0x18b)]=!![],_0x54588c;}try{const _0xca1d5d=_0x1e2fc8(0x1c4)+_0x1e2fc8(0x1b9)+_0x1e2fc8(0x1e0)+'r\x20briefing'+'\x20in\x20Englis'+_0x1e2fc8(0x16a)+_0x1e2fc8(0x1f4)+_0x1e2fc8(0x1f9)+_0x1e2fc8(0x1e1)+_0x1e2fc8(0x1b3)+_0x1e2fc8(0x1af)+_0x1e2fc8(0x1ee)+'\x0a'+JSON[_0x1e2fc8(0x179)](_0x5d4ace,null,0x2)+(_0x1e2fc8(0x1bb)+_0x1e2fc8(0x1d1)+'d\x20include:'+_0x1e2fc8(0x17a)+'\x20of\x20vulner'+'abilities\x20'+'found\x20and\x20'+_0x1e2fc8(0x18a)+'tion\x20by\x20se'+_0x1e2fc8(0x1df)+_0x1e2fc8(0x1cb)+_0x1e2fc8(0x1a1)+_0x1e2fc8(0x1c2)+_0x1e2fc8(0x172)+'es\x0a3.\x20Over'+_0x1e2fc8(0x19d)+'ty\x20status\x20'+_0x1e2fc8(0x1e9)+'\x0a4.\x20Areas\x20'+'that\x20need\x20'+_0x1e2fc8(0x1a5)+_0x1e2fc8(0x16e)+'write\x20the\x20'+_0x1e2fc8(0x1ae)+_0x1e2fc8(0x1ab)+_0x1e2fc8(0x1ea)+'300\x20charac'+_0x1e2fc8(0x17b)),_0x3d8706=await this[_0x1e2fc8(0x17d)][_0x1e2fc8(0x1f1)](_0xca1d5d),_0x566d45={};return _0x566d45['content']=_0x3d8706,_0x566d45[_0x1e2fc8(0x18b)]=!![],_0x566d45;}catch(_0x54793f){return logger['error'](_0x1e2fc8(0x1f2)+_0x1e2fc8(0x1a2)+'LM\x20analysi'+_0x1e2fc8(0x1f6)+':',_0x54793f),{'content':'Failed\x20to\x20'+'generate\x20a'+_0x1e2fc8(0x188)+_0x1e2fc8(0x16b),'success':![],'error':_0x2fa416['JgRTB'](_0x54793f,Error)?_0x54793f[_0x1e2fc8(0x1e8)]:'Unknown\x20er'+_0x1e2fc8(0x1c1)};}}async['generateSe'+a28_0x58b8e6(0x1bd)](_0x127c07,_0x33c3db){const _0x189c37=a28_0x58b8e6,_0x1c503={};_0x1c503['HFedN']='Failed\x20to\x20'+_0x189c37(0x1b2)+_0x189c37(0x196)+':';const _0x43c96b=_0x1c503;if(!this[_0x189c37(0x17d)]){const _0x128275={};return _0x128275[_0x189c37(0x1bf)]=_0x127c07,_0x128275['success']=![],_0x128275[_0x189c37(0x1cf)]=_0x189c37(0x1f5)+'uration\x20no'+_0x189c37(0x1d8)+_0x189c37(0x1c5)+'ecure\x20code'+_0x189c37(0x1e3)+_0x189c37(0x1c0)+_0x189c37(0x185),_0x128275;}try{const _0x5b86d4=_0x189c37(0x191)+_0x189c37(0x18c)+_0x189c37(0x176)+'sed\x20on\x20the'+'\x20following'+_0x189c37(0x1dc)+_0x189c37(0x1cc)+_0x189c37(0x1da)+'vulnerabil'+'ities:\x0a\x0aOr'+'iginal\x20Cod'+_0x189c37(0x1f3)+'\x0a'+_0x127c07+('\x0a```\x0a\x0aDisc'+_0x189c37(0x171)+_0x189c37(0x172)+_0x189c37(0x1b7))+JSON['stringify'](_0x33c3db,null,0x2)+(_0x189c37(0x1eb)+_0x189c37(0x1c3)+'enerate\x20se'+'cure\x20code\x20'+'that\x20fixes'+_0x189c37(0x1bc)+'ity\x20vulner'+_0x189c37(0x17f)+_0x189c37(0x1cd)+_0x189c37(0x1b1)+_0x189c37(0x177)+'lity\x20as\x20th'+_0x189c37(0x1a6)+'\x20code\x0a3.\x20A'+_0x189c37(0x1dd)+_0x189c37(0x1db)+_0x189c37(0x1d4)+_0x189c37(0x1c7)+'\x20code\x20read'+_0x189c37(0x1ba)+_0x189c37(0x192)+'nts\x20to\x20exp'+_0x189c37(0x1e5)+_0x189c37(0x182)+_0x189c37(0x199)+_0x189c37(0x19e)+_0x189c37(0x1a7)+_0x189c37(0x1e7)+_0x189c37(0x17e)+_0x189c37(0x1b5)+_0x189c37(0x197)+_0x189c37(0x19c)+'ext):'),_0x4d59e1=await this[_0x189c37(0x17d)][_0x189c37(0x1f1)](_0x5b86d4),_0xc87509={};return _0xc87509[_0x189c37(0x1bf)]=_0x4d59e1,_0xc87509[_0x189c37(0x18b)]=!![],_0xc87509;}catch(_0x47087a){logger[_0x189c37(0x1cf)](_0x43c96b[_0x189c37(0x1f7)],_0x47087a);const _0x1f9f19={};return _0x1f9f19['content']=_0x127c07,_0x1f9f19[_0x189c37(0x18b)]=![],_0x1f9f19[_0x189c37(0x1cf)]=_0x47087a instanceof Error?_0x47087a[_0x189c37(0x1e8)]:_0x189c37(0x16c)+'ror',_0x1f9f19;}}async[a28_0x58b8e6(0x184)+'cureCodeBr'+a28_0x58b8e6(0x1ef)](_0x25353d,_0x47f34d){const _0x4190a8=a28_0x58b8e6;if(!this['provider']){const _0x28b5a2={};return _0x28b5a2['content']=_0x4190a8(0x1f5)+_0x4190a8(0x1a8)+_0x4190a8(0x187)+_0x4190a8(0x1a4)+_0x4190a8(0x1f8)+'kipped.',_0x28b5a2[_0x4190a8(0x18b)]=![],_0x28b5a2['error']=_0x4190a8(0x1f5)+_0x4190a8(0x1a8)+_0x4190a8(0x1b0),_0x28b5a2;}try{const _0x242c25=_0x4190a8(0x1c4)+'te\x20a\x20brief'+_0x4190a8(0x19b)+_0x4190a8(0x1c9)+_0x4190a8(0x181)+_0x4190a8(0x1ce)+_0x4190a8(0x193)+_0x4190a8(0x189)+_0x4190a8(0x1b8)+_0x4190a8(0x17c)+_0x4190a8(0x170)+_0x4190a8(0x175)+_0x25353d+(_0x4190a8(0x173)+'re\x20Code:\x0a`'+_0x4190a8(0x1be))+_0x47f34d+(_0x4190a8(0x178)+_0x4190a8(0x1de)+'hould\x20incl'+_0x4190a8(0x1e4)+_0x4190a8(0x18f)+_0x4190a8(0x18e)+_0x4190a8(0x174)+_0x4190a8(0x194)+'rabilities'+_0x4190a8(0x1aa)+_0x4190a8(0x1a0)+'\x20best\x20prac'+_0x4190a8(0x190)+_0x4190a8(0x1b6)+_0x4190a8(0x19f)+'ents\x0a\x0aPlea'+_0x4190a8(0x18d)+_0x4190a8(0x1ed)+_0x4190a8(0x1ac)+'ximately\x203'+_0x4190a8(0x1ec)+_0x4190a8(0x1ad)),_0x4958a9=await this[_0x4190a8(0x17d)][_0x4190a8(0x1f1)](_0x242c25),_0x3f42ac={};return _0x3f42ac[_0x4190a8(0x1bf)]=_0x4958a9,_0x3f42ac[_0x4190a8(0x18b)]=!![],_0x3f42ac;}catch(_0x4b6659){logger[_0x4190a8(0x1cf)]('Failed\x20to\x20'+'generate\x20s'+_0x4190a8(0x196)+_0x4190a8(0x180),_0x4b6659);const _0x11d8e4={};return _0x11d8e4[_0x4190a8(0x1bf)]=_0x4190a8(0x1f2)+_0x4190a8(0x1b2)+_0x4190a8(0x196)+_0x4190a8(0x1e6),_0x11d8e4['success']=![],_0x11d8e4[_0x4190a8(0x1cf)]=_0x4b6659 instanceof Error?_0x4b6659['message']:_0x4190a8(0x16c)+_0x4190a8(0x1c1),_0x11d8e4;}}}
|