@sparrowai/sparrow-mcp 1.1.3 → 1.1.5
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/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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a19_0x582682=a19_0x128b;(function(_0xe5cf09,_0x161fc6){const _0x21c23f=a19_0x128b,_0x57637e=_0xe5cf09();while(!![]){try{const _0x397697=parseInt(_0x21c23f(0x21d))/0x1+parseInt(_0x21c23f(0x18c))/0x2*(parseInt(_0x21c23f(0x225))/0x3)+parseInt(_0x21c23f(0x1f0))/0x4*(parseInt(_0x21c23f(0x205))/0x5)+parseInt(_0x21c23f(0x22b))/0x6+-parseInt(_0x21c23f(0x237))/0x7*(parseInt(_0x21c23f(0x249))/0x8)+-parseInt(_0x21c23f(0x207))/0x9*(-parseInt(_0x21c23f(0x259))/0xa)+-parseInt(_0x21c23f(0x242))/0xb;if(_0x397697===_0x161fc6)break;else _0x57637e['push'](_0x57637e['shift']());}catch(_0x48774c){_0x57637e['push'](_0x57637e['shift']());}}}(a19_0x2c08,0x1ac04));const a19_0x412e5b=(function(){let _0xd723d8=!![];return function(_0x5be50a,_0x5a5305){const _0x5c28a3=_0xd723d8?function(){if(_0x5a5305){const _0x2ae99e=_0x5a5305['apply'](_0x5be50a,arguments);return _0x5a5305=null,_0x2ae99e;}}:function(){};return _0xd723d8=![],_0x5c28a3;};}()),a19_0x57bd27=a19_0x412e5b(this,function(){const _0x308a28=a19_0x128b;return a19_0x57bd27['toString']()[_0x308a28(0x1cc)](_0x308a28(0x26b)+'+$')[_0x308a28(0x192)]()['constructo'+'r'](a19_0x57bd27)[_0x308a28(0x1cc)](_0x308a28(0x26b)+'+$');});a19_0x57bd27();import{LLMService}from'./llm.service.js';function a19_0x2c08(){const _0x3186aa=['buildVulne','eSca','url','파일\x20경로\x20기반\x20분','vice','안전한\x20코드\x20브리핑','erInfo','보안\x20분석\x20요청\x20실','sFromPaths','get','contexts','FAIL','rabilityDe','분석\x20시작:\x20','lineNumber','mapSeverit','다운로드\x20시작:\x20','\x20실패:\x20','긴급\x20조치\x20필요:\x20','준비\x20중입니다.','178296yAKdhu','success','generateSe','s3Service','개\x20취약점\x20발견\x20(','pollAnalys','mmzgv','oPqrh','6vOXYqi','분석이\x20성공적으로\x20','filePaths','eSecurity','폴더\x20기반\x20보안\x20분','error','557232rUERrn','초기화\x20중입니다.','단일\x20파일\x20SCA\x20','version','input.zip','highCount','cureCodeBr','GChoC','완료:\x20','개에서\x20취약점\x20발견','enrichVuln','messages','79086RikYmm','failed','generateUn','KtlNi','다중\x20파일\x20보안\x20분','Brief','fileName','analyzeZip','\x20제공되지\x20않았습니','안\x20분석\x20요청\x20실패','전반적\x20보안\x20상태\x20','2052039wfXlWJ','양호.','patchedVer','esSca','checkerSer','Score','getChecker','112mmsyms','PRE_PROCES','분석\x20결과\x20생성\x20완','method','eventMsgs','aReportBri','ANALYSIS','vulnerabil','분석\x20결과\x20조회:\x20','requestId','issues','ate','Method:\x20','analysisTy','분석\x20결과\x20조회\x20실',').\x20','10TMEXBz','실패:','생성\x20완료:\x20','uploadFile','안전한\x20코드\x20생성\x20','lysis','generateSc','ile','rity','unt','parseScaCo','fixedVersi','name','cureCodeFr','parseVulne','분석\x20요청\x20실패:','analysisId','개\x20컴포넌트,\x20','(((.+)+)+)','completed','분석할\x20파일\x20경로가','tJiLc','다중\x20파일\x20분석\x20요','분석이\x20진행\x20중입니','code.java','\x20없습니다.','analyzeMul','criticalCo','라이브러리\x20버전\x20업','cvssScore','matchType','set','Sca','purl','join','secureCode',',\x20Medium:\x20','\x20생성에\x20실패했습니','ysisResult','isArray','파일\x20경로\x20기반\x20다','\x20시작:\x20','분석\x20요청\x20완료:\x20','ivRRG','info','LOW','summary','push','Line:\x20','완료\x20(분석\x20ID:','GnkvW','Unknown','ities','석\x20요청\x20실패:','전처리\x20중입니다.','중지\x20요청을\x20받아\x20','READY','skippedFol','INIT',',\x20High:\x20','COMPLETE','diff','료:\x20','파일\x20업로드\x20실패:','confidence','isCompleti','파일\x20경로\x20기반\x20S','FAILED','dorbc','석\x20시작:\x20','scaResults','폴더\x20압축\x20및\x20업로','mapScaSeve','개\x20파일','ifiedDiff','UNKNOWN','fileConten','descriptio','aQfMl','size','files','toUpperCas','43314yKpQXj','폴더\x20기반\x20SCA\x20','개\x20취약점\x20(Cri','Checker:\x20','SCA','\x20아니므로\x20안전한\x20','toString','checkerKey','완료되지\x20않았습니다','조회:\x20','Uri','INFO','\x20(SUCCESS가','initialize','sion','basename','Security','alysisResu','CRITICAL','ipleFiles','cureCode','analyzeFil','spdxId','erAsZip','requestAna','파일\x20경로\x20기반\x20보','result','CA\x20분석\x20요청\x20실','\x20실패했습니다.','zipFileNam','SUCCESS','CA\x20분석\x20시작:\x20','Cache','중\x20파일\x20보안\x20분석','BzQYT','der','repository','MEDIUM','scription','publishedD','지:\x20원본\x20','분석\x20ID\x20변경\x20감','ZIP\x20파일\x20업로드','totalVulne','분석이\x20실패했습니다','length','lowCount','\x20외\x20','Service','sStatus','SCA\x20분석\x20결과\x20','없습니다.)','status','분석\x20브리핑\x20생성에','분석이\x20중지된\x20상태','후처리\x20중입니다.','llmService','requestSca','score','qJCfn','지\x20않았습니다.','progress','folder.zip','폴더\x20기반\x20분석\x20요','search','캐시\x20히트:\x20','derSca','CA\x20분석\x20요청\x20완','slice','xFVne','tipleFiles','분석\x20ID:\x20','개\x20파일\x20경로','sparrowSer','string','filePath','File','lts','분석을\x20올바르게\x20완','분석\x20결과\x20다운로드','downloadAn','xbaIZ','ZIP\x20파일\x20경로가','content','HIGH','analysisBr','File:\x20','ZIP\x20파일\x20기반\x20','폴더\x20경로가\x20제공되','message','KGJqS','severity','CSWAY','니다.','STOP','석\x20요청\x20완료:\x20','드\x20실패:\x20','key','완료되었습니다.','ief','116856mmJHLm','분석\x20상태\x20조회\x20실','licenses','Details:\x20','s3Key','uploadFold',',\x20Low:\x20','ders','tical:\x20','mponents','식별된\x20컴포넌트\x20','SCA\x20분석\x20요청\x20','Analysis','uploadZipF','GlCJU','분석\x20중입니다.','입니다.','보안\x20분석\x20시작:\x20','components','number','시작:\x20','15bNHnVP','yFromRisk','469521IZCUGy','uploadMult'];a19_0x2c08=function(){return _0x3186aa;};return a19_0x2c08();}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_0x4204a2 from'path';function a19_0x128b(_0x523b3d,_0x4b7711){_0x523b3d=_0x523b3d-0x154;const _0x9fcf68=a19_0x2c08();let _0x57bd27=_0x9fcf68[_0x523b3d];return _0x57bd27;}export class AnalysisService{['llmService'];[a19_0x582682(0x1d5)+'vice'];[a19_0x582682(0x220)];[a19_0x582682(0x246)+a19_0x582682(0x20d)];[a19_0x582682(0x180)+a19_0x582682(0x1ac)]=new Map();constructor(){const _0x4820f2=a19_0x582682;this[_0x4820f2(0x1c4)]=new LLMService(),this[_0x4820f2(0x1d5)+_0x4820f2(0x20d)]=new SparrowService(),this[_0x4820f2(0x220)]=new S3Service(),this[_0x4820f2(0x246)+_0x4820f2(0x20d)]=new CheckerService();}async[a19_0x582682(0x199)+'CheckerSer'+a19_0x582682(0x20d)](){const _0x35991b=a19_0x582682;await this[_0x35991b(0x246)+'vice'][_0x35991b(0x199)]();}[a19_0x582682(0x248)+a19_0x582682(0x1bc)](){return this['checkerSer'+'vice'];}async[a19_0x582682(0x1a1)+a19_0x582682(0x228)](_0x2de0d4){const _0x16bd55=a19_0x582682;try{logger['info']('보안\x20분석\x20시작:\x20'+_0x2de0d4[_0x16bd55(0x23d)]);const _0x115814=await this[_0x16bd55(0x220)][_0x16bd55(0x25c)](_0x2de0d4[_0x16bd55(0x186)+'t'],_0x2de0d4[_0x16bd55(0x23d)]);if(!_0x115814[_0x16bd55(0x21e)])throw new Error(_0x16bd55(0x179)+'\x20'+_0x115814['error']);const _0x29f99e={};_0x29f99e['fileName']=_0x2de0d4['fileName'],_0x29f99e[_0x16bd55(0x186)+'t']=_0x2de0d4['fileConten'+'t'],_0x29f99e[_0x16bd55(0x1f4)]=_0x115814[_0x16bd55(0x1ed)];const _0x214e19=_0x29f99e,_0x13d8c9=await this['sparrowSer'+_0x16bd55(0x20d)]['requestAna'+'lysis'](_0x214e19);logger['info']('분석\x20요청\x20완료:\x20'+_0x13d8c9[_0x16bd55(0x252)]);const _0x4db977={};return _0x4db977[_0x16bd55(0x269)]=_0x13d8c9['analysisId']||_0x13d8c9['requestId'],_0x4db977[_0x16bd55(0x1c0)]=_0x13d8c9[_0x16bd55(0x1c0)],_0x4db977;}catch(_0x23efec){logger[_0x16bd55(0x22a)](_0x16bd55(0x210)+'패:',_0x23efec);throw _0x23efec;}}async['getAnalysi'+'sStatus'](_0x5e777a){const _0x33b3e8=a19_0x582682,_0x1c1678={'GChoC':function(_0x454287,_0x1716d2){return _0x454287(_0x1716d2);},'AMCks':_0x33b3e8(0x171)+_0x33b3e8(0x1c2)+_0x33b3e8(0x200),'KtlNi':_0x33b3e8(0x21c),'GlCJU':_0x33b3e8(0x1ff)};try{const _0x556bc3=await this[_0x33b3e8(0x1d5)+_0x33b3e8(0x20d)]['getAnalysi'+_0x33b3e8(0x1bd)](_0x5e777a);let _0x2c04bb=_0x556bc3[_0x33b3e8(0x1c9)];if(_0x2c04bb===undefined){const _0xa3bb9c=_0x1c1678[_0x33b3e8(0x232)](String,_0x556bc3[_0x33b3e8(0x1c0)])[_0x33b3e8(0x18b)+'e']();if(_0xa3bb9c===_0x33b3e8(0x176))_0x2c04bb=0x64;else{if(_0xa3bb9c===_0x33b3e8(0x24f))_0x2c04bb=undefined;else{if(_0xa3bb9c==='INIT'||_0xa3bb9c===_0x33b3e8(0x172))_0x2c04bb=0x0;else{if(_0xa3bb9c===_0x33b3e8(0x24a)+'S')_0x2c04bb=0xa;else _0xa3bb9c==='POST_PROCE'+'SS'&&(_0x2c04bb=0x5a);}}}}const _0x57b190=String(_0x556bc3['status'])[_0x33b3e8(0x18b)+'e']();let _0x2b836d;if(_0x57b190===_0x33b3e8(0x176)){const _0x5b1171=_0x556bc3[_0x33b3e8(0x1a6)]?_0x1c1678[_0x33b3e8(0x232)](String,_0x556bc3[_0x33b3e8(0x1a6)])[_0x33b3e8(0x18b)+'e']():undefined;if(_0x5b1171===_0x33b3e8(0x1aa))_0x2b836d=_0x33b3e8(0x226)+_0x33b3e8(0x1ee);else{if(_0x5b1171===_0x33b3e8(0x214))_0x2b836d=_0x33b3e8(0x1da)+'료하지\x20못하고\x20실패'+'한\x20상태입니다.';else _0x5b1171===_0x33b3e8(0x1ea)?_0x2b836d=_0x1c1678['AMCks']:_0x2b836d='분석이\x20완료되었습니'+'다.';}}else{const _0x42d1c0={};_0x42d1c0[_0x33b3e8(0x174)]=_0x33b3e8(0x22c),_0x42d1c0[_0x33b3e8(0x172)]=_0x1c1678[_0x33b3e8(0x23a)],_0x42d1c0[_0x33b3e8(0x24a)+'S']=_0x33b3e8(0x170),_0x42d1c0['ANALYSIS']=_0x1c1678[_0x33b3e8(0x1fe)],_0x42d1c0['POST_PROCE'+'SS']=_0x33b3e8(0x1c3),_0x42d1c0[_0x33b3e8(0x214)]=_0x33b3e8(0x1b8)+'.',_0x42d1c0[_0x33b3e8(0x17d)]=_0x33b3e8(0x1b8)+'.';const _0x31675d=_0x42d1c0;_0x2b836d=_0x31675d[_0x57b190]||_0x33b3e8(0x270)+'다.';}let _0x11051d=_0x556bc3[_0x33b3e8(0x1c0)];_0x57b190===_0x33b3e8(0x176)&&_0x556bc3[_0x33b3e8(0x1a6)]&&(_0x11051d=_0x556bc3[_0x33b3e8(0x1a6)]);const _0x132812={};return _0x132812['status']=_0x11051d,_0x132812[_0x33b3e8(0x1a6)]=_0x556bc3[_0x33b3e8(0x1a6)],_0x132812['progress']=_0x2c04bb,_0x132812['message']=_0x2b836d,_0x132812;}catch(_0x2a364e){logger[_0x33b3e8(0x22a)](_0x33b3e8(0x1f1)+'패:',_0x2a364e);throw _0x2a364e;}}async['getAnalysi'+'sResults'](_0x8923bc){const _0x5c3ce5=a19_0x582682;try{logger['info'](_0x5c3ce5(0x251)+_0x8923bc);const _0x24f8cc=await this[_0x5c3ce5(0x1d5)+'vice'][_0x5c3ce5(0x222)+_0x5c3ce5(0x17b)+'on'](_0x8923bc),_0x1f93fe=_0x24f8cc[_0x5c3ce5(0x1a6)]?String(_0x24f8cc[_0x5c3ce5(0x1a6)])[_0x5c3ce5(0x18b)+'e']():undefined;let _0x17045a;_0x1f93fe===_0x5c3ce5(0x214)||_0x1f93fe==='STOP'?_0x17045a=_0x5c3ce5(0x238):_0x17045a='completed';const _0x1edc16=_0x24f8cc['analysisId']||_0x8923bc;_0x1edc16!==_0x8923bc&&logger[_0x5c3ce5(0x166)](_0x5c3ce5(0x1b5)+_0x5c3ce5(0x1b4)+_0x8923bc+'\x20->\x20실제\x20'+_0x1edc16);logger['info'](_0x5c3ce5(0x1db)+_0x5c3ce5(0x163)+_0x1edc16);const _0x2f18b6=await this['sparrowSer'+'vice']['downloadAn'+'alysisResu'+'lts'](_0x1edc16),_0x228f45=this[_0x5c3ce5(0x267)+'rabilities'](_0x2f18b6),_0xa9cc66=this[_0x5c3ce5(0x246)+_0x5c3ce5(0x20d)][_0x5c3ce5(0x235)+'erabilitie'+'sWithCheck'+_0x5c3ce5(0x20f)](_0x228f45,'ko'),_0x17cbdd=await this[_0x5c3ce5(0x1c4)]['generateAn'+'alysisBrie'+'f'](_0x2f18b6),_0x248a36=_0x17cbdd[_0x5c3ce5(0x21e)]?_0x17cbdd[_0x5c3ce5(0x1df)]:_0x5c3ce5(0x1c1)+_0x5c3ce5(0x1a8);logger[_0x5c3ce5(0x166)](_0x5c3ce5(0x24b)+_0x5c3ce5(0x178)+_0x228f45[_0x5c3ce5(0x1b9)]+(_0x5c3ce5(0x221)+_0x5c3ce5(0x1d3))+_0x1edc16+')');const _0x24dc0d={};return _0x24dc0d['analysisId']=_0x1edc16,_0x24dc0d[_0x5c3ce5(0x1c0)]=_0x17045a,_0x24dc0d[_0x5c3ce5(0x1a6)]=_0x1f93fe,_0x24dc0d[_0x5c3ce5(0x250)+'ities']=_0xa9cc66,_0x24dc0d[_0x5c3ce5(0x1e1)+'ief']=_0x248a36,_0x24dc0d;}catch(_0x1c1af1){logger[_0x5c3ce5(0x22a)](_0x5c3ce5(0x257)+'패:',_0x1c1af1);throw _0x1c1af1;}}async[a19_0x582682(0x21f)+a19_0x582682(0x266)+'omAnalysis'](_0x448e4c,_0xdc844e){const _0x4f2a7f=a19_0x582682;try{logger['info']('안전한\x20코드\x20생성\x20'+_0x4f2a7f(0x204)+_0x448e4c);const _0x246fec=await this[_0x4f2a7f(0x1d5)+'vice']['pollAnalys'+_0x4f2a7f(0x17b)+'on'](_0x448e4c),_0x76c61c=_0x246fec[_0x4f2a7f(0x1a6)]?String(_0x246fec['result'])[_0x4f2a7f(0x18b)+'e']():undefined;if(_0x76c61c&&_0x76c61c!==_0x4f2a7f(0x1aa))throw new Error(_0x4f2a7f(0x226)+_0x4f2a7f(0x194)+'.\x20result='+_0x76c61c+(_0x4f2a7f(0x198)+_0x4f2a7f(0x191)+'코드를\x20생성할\x20수\x20'+_0x4f2a7f(0x1bf)));const _0x4ecffd=_0x246fec[_0x4f2a7f(0x269)]||_0x448e4c;logger['info'](_0x4f2a7f(0x1db)+_0x4f2a7f(0x163)+_0x4ecffd);const _0x5d9d75=await this['sparrowSer'+_0x4f2a7f(0x20d)][_0x4f2a7f(0x1dc)+'alysisResu'+_0x4f2a7f(0x1d9)](_0x4ecffd),_0x5a20f7=this['parseVulne'+'rabilities'](_0x5d9d75),_0x200366=await this[_0x4f2a7f(0x1c4)]['generateSe'+_0x4f2a7f(0x1a0)](_0xdc844e,_0x5a20f7),_0x57430e=_0x200366['success']?_0x200366[_0x4f2a7f(0x1df)]:_0xdc844e,_0x390544=await this[_0x4f2a7f(0x1c4)][_0x4f2a7f(0x21f)+_0x4f2a7f(0x231)+_0x4f2a7f(0x1ef)](_0xdc844e,_0x57430e),_0x30c878=_0x390544[_0x4f2a7f(0x21e)]?_0x390544[_0x4f2a7f(0x1df)]:_0x4f2a7f(0x20e)+_0x4f2a7f(0x15f)+'다.',_0x169696=DiffUtil[_0x4f2a7f(0x239)+_0x4f2a7f(0x184)](_0xdc844e,_0x57430e,_0x4f2a7f(0x271));logger[_0x4f2a7f(0x166)](_0x4f2a7f(0x25d)+_0x4f2a7f(0x16b)+'\x20'+_0x4ecffd+')');const _0x1b3ff0={};return _0x1b3ff0[_0x4f2a7f(0x15d)]=_0x57430e,_0x1b3ff0[_0x4f2a7f(0x15d)+_0x4f2a7f(0x23c)]=_0x30c878,_0x1b3ff0[_0x4f2a7f(0x177)]=_0x169696,_0x1b3ff0;}catch(_0x6f3bdb){logger[_0x4f2a7f(0x22a)](_0x4f2a7f(0x25d)+_0x4f2a7f(0x25a),_0x6f3bdb);throw _0x6f3bdb;}}[a19_0x582682(0x267)+'rabilities'](_0x3d5d90){const _0x42043b=a19_0x582682,_0x496761=[];for(const _0xcc38f5 of _0x3d5d90){if(Array[_0x42043b(0x161)](_0xcc38f5))for(const _0x4d214d of _0xcc38f5){_0x4d214d[_0x42043b(0x193)]&&_0x496761[_0x42043b(0x169)]({'checkerKey':_0x4d214d[_0x42043b(0x193)]||'UNKNOWN','description':this[_0x42043b(0x209)+_0x42043b(0x215)+_0x42043b(0x1b2)](_0x4d214d),'severity':this[_0x42043b(0x218)+_0x42043b(0x206)](_0x4d214d['risk']),'lineNumber':_0x4d214d[_0x42043b(0x217)],'filePath':_0x4d214d[_0x42043b(0x227)]&&_0x4d214d['filePaths']['length']>0x0?_0x4d214d[_0x42043b(0x227)][0x0]:undefined});}else{if(_0xcc38f5[_0x42043b(0x250)+_0x42043b(0x16e)]&&Array[_0x42043b(0x161)](_0xcc38f5['vulnerabil'+_0x42043b(0x16e)]))for(const _0x3b4f9b of _0xcc38f5[_0x42043b(0x250)+_0x42043b(0x16e)]){_0x496761['push']({'checkerKey':_0x3b4f9b['checkerKey']||_0x42043b(0x185),'description':_0x3b4f9b[_0x42043b(0x187)+'n']||_0x3b4f9b[_0x42043b(0x1e5)]||'설명\x20없음','severity':this[_0x42043b(0x218)+'y'](_0x3b4f9b[_0x42043b(0x1e7)]),'lineNumber':_0x3b4f9b[_0x42043b(0x217)],'filePath':_0x3b4f9b[_0x42043b(0x1d7)]});}}}return _0x496761;}['buildVulne'+a19_0x582682(0x215)+a19_0x582682(0x1b2)](_0x3e09b1){const _0x4f650a=a19_0x582682,_0x5d6a27=[];_0x3e09b1[_0x4f650a(0x193)]&&_0x5d6a27[_0x4f650a(0x169)](_0x4f650a(0x18f)+_0x3e09b1[_0x4f650a(0x193)]);_0x3e09b1[_0x4f650a(0x24c)]&&_0x5d6a27[_0x4f650a(0x169)](_0x4f650a(0x255)+_0x3e09b1[_0x4f650a(0x24c)]);_0x3e09b1[_0x4f650a(0x227)]&&_0x3e09b1['filePaths'][_0x4f650a(0x1b9)]>0x0&&_0x5d6a27['push'](_0x4f650a(0x1e2)+_0x3e09b1['filePaths'][0x0]);_0x3e09b1[_0x4f650a(0x217)]&&_0x5d6a27[_0x4f650a(0x169)](_0x4f650a(0x16a)+_0x3e09b1[_0x4f650a(0x217)]);_0x3e09b1['risk']&&_0x5d6a27[_0x4f650a(0x169)]('Risk\x20Level'+':\x20'+_0x3e09b1['risk']);if(_0x3e09b1[_0x4f650a(0x213)]&&Array[_0x4f650a(0x161)](_0x3e09b1[_0x4f650a(0x213)])){const _0x57223e=[];for(const _0x35f569 of _0x3e09b1['contexts']){if(_0x35f569[_0x4f650a(0x24d)]&&Array[_0x4f650a(0x161)](_0x35f569[_0x4f650a(0x24d)]))for(const _0x17a079 of _0x35f569[_0x4f650a(0x24d)]){if(_0x17a079[_0x4f650a(0x236)]&&Array[_0x4f650a(0x161)](_0x17a079[_0x4f650a(0x236)]))for(const _0x16ef7e of _0x17a079[_0x4f650a(0x236)]){_0x16ef7e[_0x4f650a(0x1e5)]&&_0x57223e['push'](_0x16ef7e[_0x4f650a(0x1e5)]);}}}_0x57223e[_0x4f650a(0x1b9)]>0x0&&_0x5d6a27[_0x4f650a(0x169)](_0x4f650a(0x1f3)+_0x57223e['join'](';\x20'));}return _0x5d6a27['length']>0x0?_0x5d6a27[_0x4f650a(0x15c)](',\x20'):'취약점이\x20발견되었습'+_0x4f650a(0x1e9);}[a19_0x582682(0x218)+'yFromRisk'](_0x3279d0){const _0x30f0dd=a19_0x582682,_0x137098={};_0x137098[_0x30f0dd(0x1c7)]=function(_0x5fffc3,_0x4092f2){return _0x5fffc3===_0x4092f2;},_0x137098['BzQYT']=_0x30f0dd(0x1d6);const _0x12f277=_0x137098,_0x36f37c=_0x12f277[_0x30f0dd(0x1c7)](typeof _0x3279d0,_0x12f277[_0x30f0dd(0x1ae)])?parseInt(_0x3279d0):_0x3279d0;if(_0x36f37c<=0x2)return _0x30f0dd(0x1e0);else return _0x12f277[_0x30f0dd(0x1c7)](_0x36f37c,0x3)?_0x30f0dd(0x1b1):_0x30f0dd(0x167);}async[a19_0x582682(0x154)+a19_0x582682(0x1d2)+a19_0x582682(0x19c)](_0x1415e2){const _0x2e4639=a19_0x582682;try{logger[_0x2e4639(0x166)](_0x2e4639(0x23b)+_0x2e4639(0x17f)+_0x1415e2[_0x2e4639(0x18a)][_0x2e4639(0x1b9)]+_0x2e4639(0x183));if(!_0x1415e2[_0x2e4639(0x18a)]||_0x1415e2[_0x2e4639(0x18a)][_0x2e4639(0x1b9)]===0x0)throw new Error('분석할\x20파일이\x20없습'+_0x2e4639(0x1e9));const _0x9291bc=await this[_0x2e4639(0x220)][_0x2e4639(0x208)+_0x2e4639(0x19f)](_0x1415e2[_0x2e4639(0x18a)],_0x1415e2['zipFileNam'+'e']);if(!_0x9291bc['success'])throw new Error(_0x2e4639(0x179)+'\x20'+_0x9291bc[_0x2e4639(0x22a)]);const _0x5b179a=_0x1415e2[_0x2e4639(0x18a)][0x0]?.[_0x2e4639(0x23d)]||_0x2e4639(0x22f),_0x4d06fb={};_0x4d06fb[_0x2e4639(0x23d)]=_0x1415e2[_0x2e4639(0x1a9)+'e']||_0x5b179a,_0x4d06fb[_0x2e4639(0x186)+'t']='',_0x4d06fb[_0x2e4639(0x1f4)]=_0x9291bc['key'];const _0x508d90=_0x4d06fb,_0x32a229=await this[_0x2e4639(0x1d5)+_0x2e4639(0x20d)][_0x2e4639(0x1a4)+_0x2e4639(0x25e)](_0x508d90);logger[_0x2e4639(0x166)](_0x2e4639(0x26f)+'청\x20완료:\x20'+_0x32a229[_0x2e4639(0x252)]);const _0x1f91ae={};return _0x1f91ae[_0x2e4639(0x269)]=_0x32a229[_0x2e4639(0x269)]||_0x32a229[_0x2e4639(0x252)],_0x1f91ae[_0x2e4639(0x1c0)]=_0x32a229[_0x2e4639(0x1c0)],_0x1f91ae;}catch(_0x562dd6){logger[_0x2e4639(0x22a)](_0x2e4639(0x23b)+'석\x20요청\x20실패:',_0x562dd6);throw _0x562dd6;}}async[a19_0x582682(0x154)+'tipleFiles'+'FromPaths'](_0xa2f5a9,_0x17b435){const _0x448bb4=a19_0x582682,_0x524e88={};_0x524e88['GnkvW']=function(_0x24f448,_0x2ec8a8){return _0x24f448===_0x2ec8a8;};const _0xcc25dc=_0x524e88;try{logger[_0x448bb4(0x166)](_0x448bb4(0x162)+_0x448bb4(0x1ad)+_0x448bb4(0x163)+_0xa2f5a9[_0x448bb4(0x1b9)]+'개\x20파일\x20경로');if(!_0xa2f5a9||_0xcc25dc[_0x448bb4(0x16c)](_0xa2f5a9['length'],0x0))throw new Error(_0x448bb4(0x26d)+_0x448bb4(0x272));const _0x181a51=await this[_0x448bb4(0x220)][_0x448bb4(0x25c)+_0x448bb4(0x211)](_0xa2f5a9,_0x17b435);if(!_0x181a51[_0x448bb4(0x21e)])throw new Error(_0x448bb4(0x179)+'\x20'+_0x181a51['error']);const _0x2ae9e3=a19_0x4204a2[_0x448bb4(0x19b)](_0xa2f5a9[0x0])||_0x448bb4(0x22f),_0xc010bb={};_0xc010bb['fileName']=_0x17b435||_0x2ae9e3,_0xc010bb[_0x448bb4(0x186)+'t']='',_0xc010bb[_0x448bb4(0x1f4)]=_0x181a51[_0x448bb4(0x1ed)];const _0xb82e24=_0xc010bb,_0x20ec8e=await this[_0x448bb4(0x1d5)+_0x448bb4(0x20d)]['requestAna'+_0x448bb4(0x25e)](_0xb82e24);logger[_0x448bb4(0x166)](_0x448bb4(0x20c)+_0x448bb4(0x1eb)+_0x20ec8e[_0x448bb4(0x252)]);const _0x4aace3={};return _0x4aace3[_0x448bb4(0x269)]=_0x20ec8e['analysisId']||_0x20ec8e[_0x448bb4(0x252)],_0x4aace3[_0x448bb4(0x1c0)]=_0x20ec8e['status'],_0x4aace3;}catch(_0x5c9d7c){logger['error'](_0x448bb4(0x1a5)+_0x448bb4(0x240)+':',_0x5c9d7c);throw _0x5c9d7c;}}async[a19_0x582682(0x23e)+a19_0x582682(0x1d8)](_0xdc1e33,_0x4d2a3a){const _0x49b6a6=a19_0x582682,_0x55e2fc={};_0x55e2fc['AzhcN']=_0x49b6a6(0x22f);const _0x447194=_0x55e2fc;try{logger[_0x49b6a6(0x166)](_0x49b6a6(0x1e3)+_0x49b6a6(0x201)+_0xdc1e33);if(!_0xdc1e33)throw new Error(_0x49b6a6(0x1de)+'\x20제공되지\x20않았습니'+'다.');const _0x2a1528=await this[_0x49b6a6(0x220)][_0x49b6a6(0x1fd)+_0x49b6a6(0x260)](_0xdc1e33);if(!_0x2a1528[_0x49b6a6(0x21e)])throw new Error(_0x49b6a6(0x1b6)+_0x49b6a6(0x21a)+_0x2a1528['error']);const _0x242727=_0x4d2a3a||a19_0x4204a2[_0x49b6a6(0x19b)](_0xdc1e33)||_0x447194['AzhcN'],_0x2afbcb={};_0x2afbcb[_0x49b6a6(0x23d)]=_0x242727,_0x2afbcb[_0x49b6a6(0x186)+'t']='',_0x2afbcb[_0x49b6a6(0x1f4)]=_0x2a1528[_0x49b6a6(0x1ed)];const _0x3a428e=_0x2afbcb,_0x4989f1=await this[_0x49b6a6(0x1d5)+_0x49b6a6(0x20d)]['requestAna'+_0x49b6a6(0x25e)](_0x3a428e);logger[_0x49b6a6(0x166)](_0x49b6a6(0x1e3)+_0x49b6a6(0x164)+_0x4989f1[_0x49b6a6(0x252)]);const _0x246f07={};return _0x246f07[_0x49b6a6(0x269)]=_0x4989f1[_0x49b6a6(0x269)]||_0x4989f1['requestId'],_0x246f07['status']=_0x4989f1[_0x49b6a6(0x1c0)],_0x246f07;}catch(_0x562016){logger[_0x49b6a6(0x22a)](_0x49b6a6(0x1e3)+_0x49b6a6(0x210)+'패:',_0x562016);throw _0x562016;}}async['analyzeFol'+a19_0x582682(0x1af)](_0x4b571e,_0x19a2e0){const _0x1bd97c=a19_0x582682;try{logger['info'](_0x1bd97c(0x229)+_0x1bd97c(0x17f)+_0x4b571e);if(!_0x4b571e)throw new Error('폴더\x20경로가\x20제공되'+_0x1bd97c(0x1c8));const _0x36410a=await this[_0x1bd97c(0x220)][_0x1bd97c(0x1f5)+_0x1bd97c(0x1a3)](_0x4b571e,_0x19a2e0);if(!_0x36410a[_0x1bd97c(0x21e)])throw new Error(_0x1bd97c(0x181)+'드\x20실패:\x20'+_0x36410a['error']);const _0x71ff8a=_0x19a2e0||a19_0x4204a2['basename'](_0x4b571e)||_0x1bd97c(0x1ca),_0x2834f2={};_0x2834f2[_0x1bd97c(0x23d)]=_0x71ff8a,_0x2834f2[_0x1bd97c(0x186)+'t']='',_0x2834f2[_0x1bd97c(0x1f4)]=_0x36410a['key'];const _0x1f0f3e=_0x2834f2,_0x48c1fd=await this[_0x1bd97c(0x1d5)+_0x1bd97c(0x20d)][_0x1bd97c(0x1a4)+'lysis'](_0x1f0f3e);logger[_0x1bd97c(0x166)](_0x1bd97c(0x1cb)+'청\x20완료:\x20'+_0x48c1fd['requestId']);const _0x2ec9df={};return _0x2ec9df[_0x1bd97c(0x269)]=_0x48c1fd[_0x1bd97c(0x269)]||_0x48c1fd[_0x1bd97c(0x252)],_0x2ec9df[_0x1bd97c(0x1c0)]=_0x48c1fd[_0x1bd97c(0x1c0)],_0x2ec9df['skippedFol'+_0x1bd97c(0x1f7)]=_0x36410a[_0x1bd97c(0x173)+_0x1bd97c(0x1f7)],_0x2ec9df;}catch(_0x5de903){logger[_0x1bd97c(0x22a)](_0x1bd97c(0x229)+_0x1bd97c(0x16f),_0x5de903);throw _0x5de903;}}async[a19_0x582682(0x1a1)+a19_0x582682(0x20a)](_0x512c01,_0x498a88){const _0x3a8cc7=a19_0x582682,_0x8ec7a3={};_0x8ec7a3[_0x3a8cc7(0x224)]=_0x3a8cc7(0x22f),_0x8ec7a3[_0x3a8cc7(0x1d1)]=_0x3a8cc7(0x22d)+'분석\x20요청\x20실패:';const _0x495b05=_0x8ec7a3;try{logger['info'](_0x3a8cc7(0x22d)+_0x3a8cc7(0x216)+_0x512c01);if(!_0x512c01)throw new Error(_0x3a8cc7(0x26d)+_0x3a8cc7(0x272));const _0x386e4e=await this[_0x3a8cc7(0x220)]['uploadFile'+'sFromPaths']([_0x512c01],_0x498a88);if(!_0x386e4e[_0x3a8cc7(0x21e)])throw new Error(_0x3a8cc7(0x179)+'\x20'+_0x386e4e[_0x3a8cc7(0x22a)]);const _0x4c82f3=a19_0x4204a2[_0x3a8cc7(0x19b)](_0x512c01)||_0x495b05[_0x3a8cc7(0x224)],_0x33f734={};_0x33f734['fileName']=_0x498a88||_0x4c82f3,_0x33f734[_0x3a8cc7(0x186)+'t']='',_0x33f734['s3Key']=_0x386e4e['key'];const _0x244b13=_0x33f734,_0x13ce69=await this[_0x3a8cc7(0x1d5)+'vice']['requestSca'+_0x3a8cc7(0x1fc)](_0x244b13);logger[_0x3a8cc7(0x166)](_0x3a8cc7(0x22d)+_0x3a8cc7(0x164)+_0x13ce69[_0x3a8cc7(0x252)]);const _0x627ffe={};return _0x627ffe['analysisId']=_0x13ce69['analysisId']||_0x13ce69['requestId'],_0x627ffe[_0x3a8cc7(0x1c0)]=_0x13ce69[_0x3a8cc7(0x1c0)],_0x627ffe[_0x3a8cc7(0x256)+'pe']=_0x3a8cc7(0x190),_0x627ffe;}catch(_0x38f286){logger[_0x3a8cc7(0x22a)](_0x495b05[_0x3a8cc7(0x1d1)],_0x38f286);throw _0x38f286;}}async['analyzeFil'+a19_0x582682(0x245)](_0x16c193,_0x180550){const _0x3425e6=a19_0x582682,_0x8424d8={};_0x8424d8[_0x3425e6(0x165)]=_0x3425e6(0x26d)+_0x3425e6(0x272);const _0x42304c=_0x8424d8;try{logger[_0x3425e6(0x166)](_0x3425e6(0x17c)+_0x3425e6(0x1ab)+_0x16c193[_0x3425e6(0x1b9)]+_0x3425e6(0x1d4));if(!_0x16c193||_0x16c193[_0x3425e6(0x1b9)]===0x0)throw new Error(_0x42304c[_0x3425e6(0x165)]);const _0x14c9c3=await this['s3Service'][_0x3425e6(0x25c)+_0x3425e6(0x211)](_0x16c193,_0x180550);if(!_0x14c9c3[_0x3425e6(0x21e)])throw new Error(_0x3425e6(0x179)+'\x20'+_0x14c9c3[_0x3425e6(0x22a)]);const _0x18fd0f=a19_0x4204a2[_0x3425e6(0x19b)](_0x16c193[0x0])||_0x3425e6(0x22f),_0x30dece={};_0x30dece[_0x3425e6(0x23d)]=_0x180550||_0x18fd0f,_0x30dece['fileConten'+'t']='',_0x30dece[_0x3425e6(0x1f4)]=_0x14c9c3[_0x3425e6(0x1ed)];const _0x48e352=_0x30dece,_0x505d69=await this[_0x3425e6(0x1d5)+_0x3425e6(0x20d)]['requestSca'+'Analysis'](_0x48e352);logger['info'](_0x3425e6(0x17c)+_0x3425e6(0x1cf)+_0x3425e6(0x178)+_0x505d69['requestId']);const _0x3a5ed4={};return _0x3a5ed4[_0x3425e6(0x269)]=_0x505d69[_0x3425e6(0x269)]||_0x505d69[_0x3425e6(0x252)],_0x3a5ed4['status']=_0x505d69[_0x3425e6(0x1c0)],_0x3a5ed4[_0x3425e6(0x256)+'pe']=_0x3425e6(0x190),_0x3a5ed4;}catch(_0x197c68){logger[_0x3425e6(0x22a)](_0x3425e6(0x17c)+_0x3425e6(0x1a7)+'패:',_0x197c68);throw _0x197c68;}}async['analyzeFol'+a19_0x582682(0x1ce)](_0x598f8a,_0x3cea14){const _0x10446f=a19_0x582682;try{logger[_0x10446f(0x166)]('폴더\x20기반\x20SCA\x20'+_0x10446f(0x216)+_0x598f8a);if(!_0x598f8a)throw new Error(_0x10446f(0x1e4)+_0x10446f(0x1c8));const _0xb60e2=await this[_0x10446f(0x220)]['uploadFold'+_0x10446f(0x1a3)](_0x598f8a,_0x3cea14);if(!_0xb60e2[_0x10446f(0x21e)])throw new Error('폴더\x20압축\x20및\x20업로'+_0x10446f(0x1ec)+_0xb60e2['error']);const _0x184a97=_0x3cea14||a19_0x4204a2[_0x10446f(0x19b)](_0x598f8a)||_0x10446f(0x1ca),_0x52b9c2={};_0x52b9c2['fileName']=_0x184a97,_0x52b9c2[_0x10446f(0x186)+'t']='',_0x52b9c2[_0x10446f(0x1f4)]=_0xb60e2[_0x10446f(0x1ed)];const _0x14edff=_0x52b9c2,_0x2a2ecc=await this['sparrowSer'+_0x10446f(0x20d)]['requestSca'+_0x10446f(0x1fc)](_0x14edff);logger[_0x10446f(0x166)]('폴더\x20기반\x20SCA\x20'+_0x10446f(0x164)+_0x2a2ecc[_0x10446f(0x252)]);const _0x3ce8bc={};return _0x3ce8bc[_0x10446f(0x269)]=_0x2a2ecc[_0x10446f(0x269)]||_0x2a2ecc[_0x10446f(0x252)],_0x3ce8bc[_0x10446f(0x1c0)]=_0x2a2ecc[_0x10446f(0x1c0)],_0x3ce8bc[_0x10446f(0x256)+'pe']=_0x10446f(0x190),_0x3ce8bc[_0x10446f(0x173)+_0x10446f(0x1f7)]=_0xb60e2[_0x10446f(0x173)+_0x10446f(0x1f7)],_0x3ce8bc;}catch(_0x437d43){logger[_0x10446f(0x22a)](_0x10446f(0x18d)+_0x10446f(0x268),_0x437d43);throw _0x437d43;}}async[a19_0x582682(0x23e)+a19_0x582682(0x15a)](_0x2cdf97,_0x31adc8){const _0x192313=a19_0x582682;try{logger[_0x192313(0x166)](_0x192313(0x1e3)+'SCA\x20분석\x20시작:'+'\x20'+_0x2cdf97);if(!_0x2cdf97)throw new Error(_0x192313(0x1de)+_0x192313(0x23f)+'다.');const _0xa281da=await this['s3Service'][_0x192313(0x1fd)+_0x192313(0x260)](_0x2cdf97);if(!_0xa281da[_0x192313(0x21e)])throw new Error(_0x192313(0x1b6)+_0x192313(0x21a)+_0xa281da[_0x192313(0x22a)]);const _0x23ee1f=_0x31adc8||a19_0x4204a2[_0x192313(0x19b)](_0x2cdf97)||'input.zip',_0x125f59={};_0x125f59[_0x192313(0x23d)]=_0x23ee1f,_0x125f59[_0x192313(0x186)+'t']='',_0x125f59[_0x192313(0x1f4)]=_0xa281da['key'];const _0x255aeb=_0x125f59,_0x1a8b12=await this['sparrowSer'+_0x192313(0x20d)][_0x192313(0x1c5)+_0x192313(0x1fc)](_0x255aeb);logger['info'](_0x192313(0x1e3)+_0x192313(0x1fb)+_0x192313(0x233)+_0x1a8b12['requestId']);const _0x48d609={};return _0x48d609['analysisId']=_0x1a8b12[_0x192313(0x269)]||_0x1a8b12[_0x192313(0x252)],_0x48d609[_0x192313(0x1c0)]=_0x1a8b12[_0x192313(0x1c0)],_0x48d609[_0x192313(0x256)+'pe']=_0x192313(0x190),_0x48d609;}catch(_0xdefc6b){logger['error'](_0x192313(0x1e3)+'SCA\x20분석\x20요청\x20'+'실패:',_0xdefc6b);throw _0xdefc6b;}}['mapSeverit'+'y'](_0x5ef30f){const _0x48d5c4=a19_0x582682,_0xbfea70={};_0xbfea70[_0x48d5c4(0x1e0)]=_0x48d5c4(0x1e0),_0xbfea70['CRITICAL']=_0x48d5c4(0x1e0),_0xbfea70[_0x48d5c4(0x1b1)]=_0x48d5c4(0x1b1),_0xbfea70[_0x48d5c4(0x167)]=_0x48d5c4(0x167),_0xbfea70[_0x48d5c4(0x197)]=_0x48d5c4(0x167);const _0x2950e3=_0xbfea70;return _0x2950e3[_0x5ef30f?.[_0x48d5c4(0x18b)+'e']()]||_0x48d5c4(0x1b1);}async['getScaAnal'+a19_0x582682(0x160)+'s'](_0x39962f){const _0x481448=a19_0x582682,_0x5d540d={};_0x5d540d[_0x481448(0x223)]=function(_0x489188,_0x194902){return _0x489188+_0x194902;};const _0x1259c4=_0x5d540d;try{if(this[_0x481448(0x180)+'Cache']['has'](_0x39962f))return logger[_0x481448(0x166)](_0x481448(0x1be)+_0x481448(0x1cd)+_0x39962f),this[_0x481448(0x180)+_0x481448(0x1ac)][_0x481448(0x212)](_0x39962f);logger['info']('SCA\x20분석\x20결과\x20'+_0x481448(0x195)+_0x39962f);const _0x2f8c93=await this[_0x481448(0x1d5)+_0x481448(0x20d)][_0x481448(0x222)+_0x481448(0x17b)+'on'](_0x39962f),_0x4a0258=_0x2f8c93['result']?String(_0x2f8c93['result'])[_0x481448(0x18b)+'e']():undefined;let _0x5370da;_0x4a0258===_0x481448(0x214)||_0x4a0258===_0x481448(0x1ea)?_0x5370da=_0x481448(0x238):_0x5370da=_0x481448(0x26c);const _0x1d6179=_0x2f8c93[_0x481448(0x269)]||_0x39962f;logger[_0x481448(0x166)](_0x481448(0x1be)+_0x481448(0x219)+_0x1d6179);const _0x5ee5b5=await this[_0x481448(0x1d5)+_0x481448(0x20d)][_0x481448(0x1dc)+_0x481448(0x19d)+_0x481448(0x1d9)](_0x1d6179),_0x47e9b5=this[_0x481448(0x263)+'mponents'](_0x5ee5b5);let _0x5a0f00=0x0,_0x4f1385=0x0,_0x3a5c89=0x0,_0xbaa675=0x0;for(const _0x6b1f81 of _0x47e9b5){for(const _0x55a789 of _0x6b1f81[_0x481448(0x253)]){switch(_0x55a789[_0x481448(0x1e7)]){case'CRITICAL':_0x5a0f00++;break;case _0x481448(0x1e0):_0x4f1385++;break;case'MEDIUM':_0x3a5c89++;break;case _0x481448(0x167):_0xbaa675++;break;}}}const _0x132356=_0x1259c4[_0x481448(0x223)](_0x5a0f00+_0x4f1385+_0x3a5c89,_0xbaa675),_0x4b0722=this['generateSc'+_0x481448(0x24e)+'ef'](_0x47e9b5,_0x132356,_0x5a0f00,_0x4f1385,_0x3a5c89,_0xbaa675),_0x529152={};_0x529152[_0x481448(0x269)]=_0x1d6179,_0x529152[_0x481448(0x1c0)]=_0x5370da,_0x529152['result']=_0x4a0258,_0x529152[_0x481448(0x202)]=_0x47e9b5,_0x529152[_0x481448(0x1b7)+'rabilities']=_0x132356,_0x529152[_0x481448(0x155)+_0x481448(0x262)]=_0x5a0f00,_0x529152[_0x481448(0x230)]=_0x4f1385,_0x529152['mediumCoun'+'t']=_0x3a5c89,_0x529152[_0x481448(0x1ba)]=_0xbaa675,_0x529152[_0x481448(0x1e1)+_0x481448(0x1ef)]=_0x4b0722;const _0x327f29=_0x529152;return this['scaResults'+'Cache'][_0x481448(0x159)](_0x39962f,_0x327f29),_0x1d6179!==_0x39962f&&this[_0x481448(0x180)+_0x481448(0x1ac)]['set'](_0x1d6179,_0x327f29),logger[_0x481448(0x166)]('SCA\x20분석\x20결과\x20'+_0x481448(0x25b)+_0x47e9b5['length']+_0x481448(0x26a)+_0x132356+'개\x20취약점'),_0x327f29;}catch(_0x1a8674){logger['error']('SCA\x20분석\x20결과\x20'+'조회\x20실패:',_0x1a8674);throw _0x1a8674;}}[a19_0x582682(0x263)+a19_0x582682(0x1f9)](_0x869ad0){const _0x53caf7=a19_0x582682,_0x4a518e=[];for(const _0x5cc330 of _0x869ad0){if(_0x5cc330[_0x53caf7(0x265)]&&_0x5cc330[_0x53caf7(0x22e)]!==undefined){const _0x5cbebd=[];if(_0x5cc330[_0x53caf7(0x1f2)]&&Array[_0x53caf7(0x161)](_0x5cc330[_0x53caf7(0x1f2)]))for(const _0x413155 of _0x5cc330[_0x53caf7(0x1f2)]){const _0x1f1320={};_0x1f1320[_0x53caf7(0x265)]=_0x413155['name']||_0x413155[_0x53caf7(0x1a2)]||_0x53caf7(0x16d),_0x1f1320[_0x53caf7(0x1a2)]=_0x413155['spdxId'],_0x1f1320[_0x53caf7(0x20b)]=_0x413155[_0x53caf7(0x20b)],_0x5cbebd['push'](_0x1f1320);}const _0x400cae=[];if(_0x5cc330[_0x53caf7(0x253)]&&Array[_0x53caf7(0x161)](_0x5cc330[_0x53caf7(0x253)]))for(const _0x468ac2 of _0x5cc330[_0x53caf7(0x253)]){_0x400cae[_0x53caf7(0x169)]({'cveId':_0x468ac2['cveId']||_0x468ac2['id']||_0x53caf7(0x16d),'severity':this[_0x53caf7(0x182)+_0x53caf7(0x261)](_0x468ac2[_0x53caf7(0x1e7)]||_0x468ac2['risk']),'cvssScore':_0x468ac2['cvssScore']||_0x468ac2[_0x53caf7(0x1c6)],'description':_0x468ac2[_0x53caf7(0x187)+'n']||_0x468ac2['summary'],'fixedVersion':_0x468ac2[_0x53caf7(0x264)+'on']||_0x468ac2[_0x53caf7(0x244)+'sion']});}const _0x2c6835={};_0x2c6835[_0x53caf7(0x265)]=_0x5cc330[_0x53caf7(0x265)],_0x2c6835[_0x53caf7(0x22e)]=_0x5cc330['version']||_0x53caf7(0x16d),_0x2c6835[_0x53caf7(0x15b)]=_0x5cc330[_0x53caf7(0x15b)],_0x2c6835[_0x53caf7(0x1b0)]=_0x5cc330['repository'],_0x2c6835['repository'+_0x53caf7(0x196)]=_0x5cc330[_0x53caf7(0x1b0)+_0x53caf7(0x196)],_0x2c6835[_0x53caf7(0x158)]=_0x5cc330['matchType'],_0x2c6835['licenses']=_0x5cbebd,_0x2c6835[_0x53caf7(0x253)]=_0x400cae,_0x2c6835[_0x53caf7(0x17a)+_0x53caf7(0x247)]=_0x5cc330[_0x53caf7(0x17a)+_0x53caf7(0x247)],_0x2c6835[_0x53caf7(0x1b3)+_0x53caf7(0x254)]=_0x5cc330[_0x53caf7(0x1b3)+_0x53caf7(0x254)],_0x4a518e[_0x53caf7(0x169)](_0x2c6835);}else{if(Array[_0x53caf7(0x161)](_0x5cc330))for(const _0x288e62 of _0x5cc330){if(_0x288e62[_0x53caf7(0x265)]&&_0x288e62[_0x53caf7(0x22e)]!==undefined){const _0xba2e55=[];if(_0x288e62[_0x53caf7(0x1f2)]&&Array[_0x53caf7(0x161)](_0x288e62['licenses']))for(const _0x354bcb of _0x288e62['licenses']){const _0x306e9e={};_0x306e9e['name']=_0x354bcb[_0x53caf7(0x265)]||_0x354bcb[_0x53caf7(0x1a2)]||_0x53caf7(0x16d),_0x306e9e[_0x53caf7(0x1a2)]=_0x354bcb[_0x53caf7(0x1a2)],_0x306e9e[_0x53caf7(0x20b)]=_0x354bcb['url'],_0xba2e55['push'](_0x306e9e);}const _0x3fc179=[];if(_0x288e62[_0x53caf7(0x253)]&&Array[_0x53caf7(0x161)](_0x288e62[_0x53caf7(0x253)]))for(const _0xe80549 of _0x288e62[_0x53caf7(0x253)]){_0x3fc179['push']({'cveId':_0xe80549['cveId']||_0xe80549['id']||'Unknown','severity':this[_0x53caf7(0x182)+_0x53caf7(0x261)](_0xe80549[_0x53caf7(0x1e7)]||_0xe80549['risk']),'cvssScore':_0xe80549[_0x53caf7(0x157)]||_0xe80549[_0x53caf7(0x1c6)],'description':_0xe80549[_0x53caf7(0x187)+'n']||_0xe80549[_0x53caf7(0x168)],'fixedVersion':_0xe80549[_0x53caf7(0x264)+'on']||_0xe80549['patchedVer'+_0x53caf7(0x19a)]});}const _0x17b65e={};_0x17b65e['name']=_0x288e62[_0x53caf7(0x265)],_0x17b65e[_0x53caf7(0x22e)]=_0x288e62[_0x53caf7(0x22e)]||_0x53caf7(0x16d),_0x17b65e['purl']=_0x288e62[_0x53caf7(0x15b)],_0x17b65e[_0x53caf7(0x1b0)]=_0x288e62[_0x53caf7(0x1b0)],_0x17b65e[_0x53caf7(0x1b0)+'Uri']=_0x288e62[_0x53caf7(0x1b0)+_0x53caf7(0x196)],_0x17b65e['matchType']=_0x288e62[_0x53caf7(0x158)],_0x17b65e[_0x53caf7(0x1f2)]=_0xba2e55,_0x17b65e['issues']=_0x3fc179,_0x17b65e[_0x53caf7(0x17a)+_0x53caf7(0x247)]=_0x288e62[_0x53caf7(0x17a)+_0x53caf7(0x247)],_0x17b65e[_0x53caf7(0x1b3)+_0x53caf7(0x254)]=_0x288e62[_0x53caf7(0x1b3)+_0x53caf7(0x254)],_0x4a518e[_0x53caf7(0x169)](_0x17b65e);}}}}return _0x4a518e;}['mapScaSeve'+a19_0x582682(0x261)](_0x37eb71){const _0x1b03ca=a19_0x582682,_0x38d908={};_0x38d908[_0x1b03ca(0x17e)]=_0x1b03ca(0x167),_0x38d908[_0x1b03ca(0x188)]=_0x1b03ca(0x19e);const _0x3e3287=_0x38d908;if(typeof _0x37eb71===_0x1b03ca(0x203)){if(_0x1b03ca(0x1e6)===_0x1b03ca(0x1dd))_0x2fc540[_0x1b03ca(0x169)](_0x1b03ca(0x1f3)+_0x59f80f['join'](';\x20'));else{if(_0x37eb71>=0x9)return _0x1b03ca(0x19e);if(_0x37eb71>=0x7)return _0x1b03ca(0x1e0);if(_0x37eb71>=0x4)return _0x1b03ca(0x1b1);return _0x3e3287[_0x1b03ca(0x17e)];}}const _0x5a18b6={};_0x5a18b6[_0x1b03ca(0x19e)]=_0x3e3287[_0x1b03ca(0x188)],_0x5a18b6['HIGH']='HIGH',_0x5a18b6['MEDIUM']=_0x1b03ca(0x1b1),_0x5a18b6['LOW']=_0x1b03ca(0x167),_0x5a18b6[_0x1b03ca(0x197)]='LOW';const _0x367968=_0x5a18b6;return _0x367968[_0x37eb71?.[_0x1b03ca(0x18b)+'e']()]||_0x1b03ca(0x1b1);}[a19_0x582682(0x25f)+a19_0x582682(0x24e)+'ef'](_0x57b31e,_0x639bd4,_0x2e5973,_0x2cafd0,_0x11ec7a,_0x27dbd9){const _0x98e589=a19_0x582682,_0x166f3e={};_0x166f3e[_0x98e589(0x1e8)]=function(_0x482756,_0x3fdc5a){return _0x482756>_0x3fdc5a;},_0x166f3e[_0x98e589(0x26e)]=function(_0x65207,_0x23dd25){return _0x65207>_0x23dd25;};const _0x146ec6=_0x166f3e,_0x260d4e=_0x57b31e['filter'](_0x3b5a45=>_0x3b5a45[_0x98e589(0x253)]['length']>0x0),_0x18315c=new Set();for(const _0x42c05c of _0x57b31e){for(const _0x44f721 of _0x42c05c['licenses']){_0x18315c['add'](_0x44f721['name']);}}let _0x430a85=_0x98e589(0x1fa)+_0x57b31e[_0x98e589(0x1b9)]+'개\x20중\x20'+_0x260d4e[_0x98e589(0x1b9)]+(_0x98e589(0x234)+'.\x20');_0x430a85+='총\x20'+_0x639bd4+(_0x98e589(0x18e)+_0x98e589(0x1f8))+_0x2e5973+_0x98e589(0x175)+_0x2cafd0+_0x98e589(0x15e)+_0x11ec7a+_0x98e589(0x1f6)+_0x27dbd9+_0x98e589(0x258);_0x18315c['size']>0x0&&(_0x430a85+='사용\x20라이선스:\x20'+Array['from'](_0x18315c)[_0x98e589(0x1d0)](0x0,0x5)['join'](',\x20')+(_0x18315c[_0x98e589(0x189)]>0x5?_0x98e589(0x1bb)+(_0x18315c[_0x98e589(0x189)]-0x5)+'개':'')+'.\x20');if(_0x2e5973>0x0||_0x146ec6[_0x98e589(0x1e8)](_0x2cafd0,0x0))_0x430a85+=_0x98e589(0x21b)+_0x98e589(0x156)+'데이트\x20권장.';else _0x146ec6[_0x98e589(0x26e)](_0x11ec7a,0x0)?_0x430a85+='조치\x20권장:\x20보안\x20'+'업데이트\x20검토\x20필요'+'.':_0x430a85+=_0x98e589(0x241)+_0x98e589(0x243);return _0x430a85;}}
|
|
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 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a20_0x132d81=a20_0x2f27;(function(_0x35767d,_0x404d74){const _0x4cc6ee=a20_0x2f27,_0x59d6e3=_0x35767d();while(!![]){try{const _0x2d84b1=-parseInt(_0x4cc6ee(0x171))/0x1*(-parseInt(_0x4cc6ee(0x149))/0x2)+parseInt(_0x4cc6ee(0x161))/0x3+parseInt(_0x4cc6ee(0x156))/0x4*(parseInt(_0x4cc6ee(0x148))/0x5)+-parseInt(_0x4cc6ee(0x188))/0x6*(-parseInt(_0x4cc6ee(0x16f))/0x7)+-parseInt(_0x4cc6ee(0x150))/0x8+-parseInt(_0x4cc6ee(0x17a))/0x9*(-parseInt(_0x4cc6ee(0x12c))/0xa)+-parseInt(_0x4cc6ee(0x183))/0xb*(parseInt(_0x4cc6ee(0x135))/0xc);if(_0x2d84b1===_0x404d74)break;else _0x59d6e3['push'](_0x59d6e3['shift']());}catch(_0x535392){_0x59d6e3['push'](_0x59d6e3['shift']());}}}(a20_0x22b3,0x5c373));const a20_0x30bbf5=(function(){let _0x34f95f=!![];return function(_0x39927f,_0x57f4e7){const _0xcff1a7=_0x34f95f?function(){const _0x1b4e7f=a20_0x2f27;if(_0x57f4e7){const _0x5518a0=_0x57f4e7[_0x1b4e7f(0x12f)](_0x39927f,arguments);return _0x57f4e7=null,_0x5518a0;}}:function(){};return _0x34f95f=![],_0xcff1a7;};}()),a20_0x4afe81=a20_0x30bbf5(this,function(){const _0x4c27f9=a20_0x2f27;return a20_0x4afe81['toString']()[_0x4c27f9(0x155)](_0x4c27f9(0x12d)+'+$')[_0x4c27f9(0x147)]()[_0x4c27f9(0x13a)+'r'](a20_0x4afe81)['search'](_0x4c27f9(0x12d)+'+$');});a20_0x4afe81();import a20_0x5b379d from'axios';import a20_0x5a02d7 from'adm-zip';import a20_0x1ba27c from'path';import a20_0x18e539 from'fs';function a20_0x2f27(_0x44ae73,_0x33bf5e){_0x44ae73=_0x44ae73-0x123;const _0xf323e5=a20_0x22b3();let _0x4afe81=_0xf323e5[_0x44ae73];return _0x4afe81;}import{fileURLToPath}from'url';import{appConfig}from'../config/appConfig.js';function a20_0x22b3(){const _0xdc1f52=['Bearer\x20','endsWith','readdirSyn','writeFileS','search','308bbKwVb','sparrow','referenceI','warn','체커\x20서비스\x20초기화','groupVulne','resolve','localized','clear','loadChecke','erInfo','816966OxPoYg','extractAll','reference','/api/v1/ch','filter','utf-8','기존\x20체커\x20캐시\x20사','readFileSy','from','name','checkerInf','tems','length','nceInfo','1673KOPDIj','gIflS','109246GUAFaM','get','체커\x20규칙\x20다운로드','getComplia','join','mkdirSync','has','arraybuffe','baseUrl','59715PprWNA','getLocaliz','size','sWithCheck','Info','rabilities','../../chec','heckerCoun','ync','143rfmZQU','set','edInfo','existsSync','kers','11316YFFPLi','unlinkSync','.rule','error','getChecker','FmoHa','some','values','\x20실패:','체커\x20디렉토리가\x20존','330YfDtnQ','(((.+)+)+)','checkerKey','apply','find','aded','initialize','version','recursive','465072aDlfMI','push','용:\x20','key','ensureChec','constructo','재하지\x20않습니다','map','dirname','parse','info','erabilitie','toLowerCas','checkersDi','체커\x20파일\x20파싱\x20실','kersDownlo','nce','descriptio','toString','23815iWMxBL','2XhjkSB','enrichVuln','getCachedC','개\x20파일','lang','checkerCac','eckers','4291880ZhNRLZ'];a20_0x22b3=function(){return _0xdc1f52;};return a20_0x22b3();}import{logger}from'../utils/logger.js';export class CheckerService{['checkersDi'+'r'];[a20_0x132d81(0x14e)+'he'];[a20_0x132d81(0x132)+'d']=![];constructor(_0xbed8cc){const _0xf0cada=a20_0x132d81;if(_0xbed8cc)this[_0xf0cada(0x142)+'r']=_0xbed8cc;else{const _0x7072a=a20_0x1ba27c[_0xf0cada(0x13d)](fileURLToPath(import.meta.url));this[_0xf0cada(0x142)+'r']=a20_0x1ba27c[_0xf0cada(0x15c)](_0x7072a,_0xf0cada(0x180)+_0xf0cada(0x187));}this[_0xf0cada(0x14e)+'he']=new Map();}async[a20_0x132d81(0x132)](){const _0x1b6413=a20_0x132d81;if(this[_0x1b6413(0x132)+'d'])return;try{await this[_0x1b6413(0x139)+_0x1b6413(0x144)+_0x1b6413(0x131)](),await this[_0x1b6413(0x15f)+'rs'](),this[_0x1b6413(0x132)+'d']=!![],logger[_0x1b6413(0x13f)](_0x1b6413(0x15a)+'\x20완료:\x20'+this['checkerCac'+'he'][_0x1b6413(0x17c)]+'개\x20규칙\x20로드');}catch(_0x5aa7cc){logger[_0x1b6413(0x125)](_0x1b6413(0x15a)+'\x20실패:',_0x5aa7cc),this[_0x1b6413(0x132)+'d']=!![];}}async[a20_0x132d81(0x139)+a20_0x132d81(0x144)+a20_0x132d81(0x131)](){const _0x2798d=a20_0x132d81,_0x3259db={};_0x3259db[_0x2798d(0x127)]='checkers.z'+'ip';const _0x216d22=_0x3259db;if(a20_0x18e539[_0x2798d(0x186)](this['checkersDi'+'r'])){const _0x559c0f=a20_0x18e539[_0x2798d(0x153)+'c'](this[_0x2798d(0x142)+'r']),_0x561d5b=_0x559c0f[_0x2798d(0x165)](_0x4d521b=>_0x4d521b[_0x2798d(0x152)](_0x2798d(0x124)));if(_0x561d5b[_0x2798d(0x16d)]>0x0){logger['info'](_0x2798d(0x167)+_0x2798d(0x137)+_0x561d5b[_0x2798d(0x16d)]+'개\x20파일');return;}}logger[_0x2798d(0x13f)](_0x2798d(0x173)+'\x20시작...');try{const _0x235b07=await a20_0x5b379d['get'](appConfig[_0x2798d(0x157)][_0x2798d(0x179)]+(_0x2798d(0x164)+_0x2798d(0x14f)),{'headers':{'Authorization':_0x2798d(0x151)+appConfig[_0x2798d(0x157)]['apiKey']},'responseType':_0x2798d(0x178)+'r','timeout':0xea60});if(!a20_0x18e539[_0x2798d(0x186)](this[_0x2798d(0x142)+'r'])){const _0x59f020={};_0x59f020[_0x2798d(0x134)]=!![],a20_0x18e539[_0x2798d(0x176)](this['checkersDi'+'r'],_0x59f020);}const _0x840826=a20_0x1ba27c[_0x2798d(0x175)](this[_0x2798d(0x142)+'r'],_0x216d22['FmoHa']);a20_0x18e539[_0x2798d(0x154)+_0x2798d(0x182)](_0x840826,Buffer[_0x2798d(0x169)](_0x235b07['data']));const _0x278aa4=new a20_0x5a02d7(_0x840826);_0x278aa4[_0x2798d(0x162)+'To'](this[_0x2798d(0x142)+'r'],!![]),a20_0x18e539[_0x2798d(0x123)](_0x840826);const _0x344dbf=a20_0x18e539[_0x2798d(0x153)+'c'](this[_0x2798d(0x142)+'r']),_0x31b4a6=_0x344dbf['filter'](_0x5ba3e1=>_0x5ba3e1[_0x2798d(0x152)](_0x2798d(0x124)));logger['info'](_0x2798d(0x173)+'\x20완료:\x20'+_0x31b4a6['length']+_0x2798d(0x14c));}catch(_0x4b717e){logger[_0x2798d(0x125)](_0x2798d(0x173)+_0x2798d(0x12a),_0x4b717e);throw _0x4b717e;}}async[a20_0x132d81(0x15f)+'rs'](){const _0x1a6c0d=a20_0x132d81,_0x481272={};_0x481272[_0x1a6c0d(0x170)]=_0x1a6c0d(0x166);const _0x3d68eb=_0x481272;if(!a20_0x18e539['existsSync'](this[_0x1a6c0d(0x142)+'r'])){logger[_0x1a6c0d(0x159)](_0x1a6c0d(0x12b)+_0x1a6c0d(0x13b));return;}const _0x8bd19a=a20_0x18e539[_0x1a6c0d(0x153)+'c'](this[_0x1a6c0d(0x142)+'r']),_0x3ba66d=_0x8bd19a[_0x1a6c0d(0x165)](_0x949297=>_0x949297[_0x1a6c0d(0x152)](_0x1a6c0d(0x124)));for(const _0x2d82f5 of _0x3ba66d){try{const _0x5128bf=a20_0x1ba27c[_0x1a6c0d(0x175)](this['checkersDi'+'r'],_0x2d82f5),_0x266f15=a20_0x18e539[_0x1a6c0d(0x168)+'nc'](_0x5128bf,_0x3d68eb['gIflS']),_0x449992=JSON[_0x1a6c0d(0x13e)](_0x266f15);_0x449992['key']&&this[_0x1a6c0d(0x14e)+'he'][_0x1a6c0d(0x184)](_0x449992[_0x1a6c0d(0x138)],_0x449992);}catch(_0x37d6bf){logger['warn'](_0x1a6c0d(0x143)+'패:\x20'+_0x2d82f5,_0x37d6bf);}}}['getChecker'+a20_0x132d81(0x17e)](_0x376b74,_0x21f781='ko'){const _0x2d52f6=a20_0x132d81;return this[_0x2d52f6(0x14e)+'he']['get'](_0x376b74);}[a20_0x132d81(0x17b)+a20_0x132d81(0x185)](_0x4fa5fd,_0x2fdb2e='ko'){const _0xc74dc6=a20_0x132d81,_0x1a20ad=this[_0xc74dc6(0x14e)+'he']['get'](_0x4fa5fd);if(!_0x1a20ad)return undefined;const _0xe70e4b=_0x1a20ad[_0xc74dc6(0x15d)][_0xc74dc6(0x130)](_0x18d22c=>_0x18d22c['lang']===_0x2fdb2e)||_0x1a20ad['localized'][_0xc74dc6(0x130)](_0x4c2501=>_0x4c2501[_0xc74dc6(0x14d)]==='en')||_0x1a20ad[_0xc74dc6(0x15d)][0x0];if(!_0xe70e4b)return undefined;const _0x2bd52d={};return _0x2bd52d[_0xc74dc6(0x16a)]=_0xe70e4b[_0xc74dc6(0x16a)],_0x2bd52d[_0xc74dc6(0x146)+'n']=_0xe70e4b[_0xc74dc6(0x146)+'n'],_0x2bd52d;}['getComplia'+a20_0x132d81(0x16e)](_0x18cf66){const _0x58b447=a20_0x132d81,_0x4917d2=this['checkerCac'+'he'][_0x58b447(0x172)](_0x18cf66);return _0x4917d2?.[_0x58b447(0x158)+_0x58b447(0x16c)]||[];}[a20_0x132d81(0x126)+'sByComplia'+a20_0x132d81(0x145)](_0x1445db){const _0x2b73fa=a20_0x132d81,_0x5afacb=[];for(const _0x3ad777 of this['checkerCac'+'he'][_0x2b73fa(0x129)]()){const _0x168e9f=_0x3ad777['referenceI'+_0x2b73fa(0x16c)]?.[_0x2b73fa(0x128)](_0x41525d=>_0x41525d[_0x2b73fa(0x163)][_0x2b73fa(0x16a)][_0x2b73fa(0x141)+'e']()['includes'](_0x1445db[_0x2b73fa(0x141)+'e']()));_0x168e9f&&_0x5afacb[_0x2b73fa(0x136)](_0x3ad777);}return _0x5afacb;}[a20_0x132d81(0x14a)+a20_0x132d81(0x140)+a20_0x132d81(0x17d)+a20_0x132d81(0x160)](_0x232499,_0x5bfce9='ko'){const _0x31697a=a20_0x132d81;return _0x232499[_0x31697a(0x13c)](_0x2247ae=>{const _0x1d50eb=_0x31697a,_0x3c82c9=_0x2247ae[_0x1d50eb(0x12e)];if(!_0x3c82c9)return _0x2247ae;const _0x4e9a48=this[_0x1d50eb(0x17b)+_0x1d50eb(0x185)](_0x3c82c9,_0x5bfce9),_0x52a93d=this['getComplia'+_0x1d50eb(0x16e)](_0x3c82c9),_0x2c9cf8={..._0x2247ae};return _0x2c9cf8[_0x1d50eb(0x16b)+'o']=_0x4e9a48?{'name':_0x4e9a48[_0x1d50eb(0x16a)],'description':_0x4e9a48['descriptio'+'n'],'compliance':_0x52a93d['length']>0x0?_0x52a93d:undefined}:undefined,_0x2c9cf8;});}[a20_0x132d81(0x15b)+a20_0x132d81(0x17f)+'ByComplian'+'ce'](_0xe3bbf8){const _0x2d8c26=a20_0x132d81,_0x4cbb27=new Map();for(const _0x534511 of _0xe3bbf8){const _0x3c9f8b=this[_0x2d8c26(0x174)+_0x2d8c26(0x16e)](_0x534511[_0x2d8c26(0x12e)]);if(_0x3c9f8b[_0x2d8c26(0x16d)]===0x0){const _0x21a0f7='기타';!_0x4cbb27[_0x2d8c26(0x177)](_0x21a0f7)&&_0x4cbb27['set'](_0x21a0f7,[]),_0x4cbb27[_0x2d8c26(0x172)](_0x21a0f7)['push'](_0x534511);}else for(const _0xbb338c of _0x3c9f8b){const _0x5893f3=''+_0xbb338c[_0x2d8c26(0x163)][_0x2d8c26(0x16a)]+(_0xbb338c[_0x2d8c26(0x163)][_0x2d8c26(0x133)]?'\x20('+_0xbb338c[_0x2d8c26(0x163)][_0x2d8c26(0x133)]+')':'');!_0x4cbb27[_0x2d8c26(0x177)](_0x5893f3)&&_0x4cbb27['set'](_0x5893f3,[]),_0x4cbb27['get'](_0x5893f3)[_0x2d8c26(0x136)](_0x534511);}}return _0x4cbb27;}[a20_0x132d81(0x14b)+a20_0x132d81(0x181)+'t'](){const _0x5a122d=a20_0x132d81;return this[_0x5a122d(0x14e)+'he'][_0x5a122d(0x17c)];}async['refreshCac'+'he'](){const _0x443c26=a20_0x132d81;this[_0x443c26(0x14e)+'he'][_0x443c26(0x15e)]();if(a20_0x18e539['existsSync'](this[_0x443c26(0x142)+'r'])){const _0xa321fe=a20_0x18e539[_0x443c26(0x153)+'c'](this[_0x443c26(0x142)+'r']);for(const _0x40fe0b of _0xa321fe){a20_0x18e539['unlinkSync'](a20_0x1ba27c[_0x443c26(0x175)](this['checkersDi'+'r'],_0x40fe0b));}}this['initialize'+'d']=![],await this[_0x443c26(0x132)]();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x52ea5e=a21_0xd671;(function(_0x46d7a8,_0x4aca97){const _0x4a5951=a21_0xd671,_0x4a54b7=_0x46d7a8();while(!![]){try{const _0x4dd03a=parseInt(_0x4a5951(0xd5))/0x1*(-parseInt(_0x4a5951(0xd2))/0x2)+-parseInt(_0x4a5951(0xc9))/0x3+-parseInt(_0x4a5951(0xdf))/0x4+-parseInt(_0x4a5951(0xd1))/0x5+-parseInt(_0x4a5951(0xcc))/0x6*(parseInt(_0x4a5951(0xd6))/0x7)+parseInt(_0x4a5951(0xdc))/0x8*(-parseInt(_0x4a5951(0xcf))/0x9)+parseInt(_0x4a5951(0xdb))/0xa*(parseInt(_0x4a5951(0xcd))/0xb);if(_0x4dd03a===_0x4aca97)break;else _0x4a54b7['push'](_0x4a54b7['shift']());}catch(_0xc9e1f3){_0x4a54b7['push'](_0x4a54b7['shift']());}}}(a21_0x29ec,0x660a0));const a21_0x2f6e59=(function(){let _0x51cdf8=!![];return function(_0x1af339,_0x46c5de){const _0x19685a=_0x51cdf8?function(){const _0x45bae5=a21_0xd671;if(_0x46c5de){const _0x13c797=_0x46c5de[_0x45bae5(0xcb)](_0x1af339,arguments);return _0x46c5de=null,_0x13c797;}}:function(){};return _0x51cdf8=![],_0x19685a;};}()),a21_0x33699e=a21_0x2f6e59(this,function(){const _0x1d5e55=a21_0xd671;return a21_0x33699e[_0x1d5e55(0xd7)]()['search'](_0x1d5e55(0xd4)+'+$')['toString']()['constructo'+'r'](a21_0x33699e)[_0x1d5e55(0xd3)](_0x1d5e55(0xd4)+'+$');});function a21_0x29ec(){const _0x3816db=['1565800kFXIFq','role','type','648768hSQnmv','text','client','apiKey','1121730rpbWTS','create','apply','306foWHQs','11sacsWe','generate','9CcJjqM','model','2152780LMvRhu','54xOiikp','search','(((.+)+)+)','22961PQkakO','10647eOusZA','toString','content','messages','user','22778530OoUgQC'];a21_0x29ec=function(){return _0x3816db;};return a21_0x29ec();}function a21_0xd671(_0x188d82,_0xc8ca47){_0x188d82=_0x188d82-0xc9;const _0x1095d4=a21_0x29ec();let _0x33699e=_0x1095d4[_0x188d82];return _0x33699e;}a21_0x33699e();import a21_0x241eef from'@anthropic-ai/sdk';export class AnthropicProvider{['model'];[a21_0x52ea5e(0xe1)];constructor(_0x106fd4,_0x228ab9){const _0x105661=a21_0x52ea5e;this[_0x105661(0xd0)]=_0x228ab9;const _0x1d06bb={};_0x1d06bb[_0x105661(0xe2)]=_0x106fd4,this[_0x105661(0xe1)]=new a21_0x241eef(_0x1d06bb);}async[a21_0x52ea5e(0xce)](_0x349f6b){const _0x453cd9=a21_0x52ea5e,_0x5bf80d={};_0x5bf80d[_0x453cd9(0xdd)]=_0x453cd9(0xda),_0x5bf80d[_0x453cd9(0xd8)]=_0x349f6b;const _0x21ab7a=await this[_0x453cd9(0xe1)][_0x453cd9(0xd9)][_0x453cd9(0xca)]({'model':this[_0x453cd9(0xd0)],'max_tokens':0x1000,'messages':[_0x5bf80d]});if(_0x21ab7a['content'][0x0][_0x453cd9(0xde)]===_0x453cd9(0xe0))return _0x21ab7a['content'][0x0][_0x453cd9(0xe0)];return'';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x1c2425=a22_0x3220;(function(_0x2e41be,_0x41e2b6){const _0x213f2a=a22_0x3220,_0x195c1c=_0x2e41be();while(!![]){try{const _0x339a08=-parseInt(_0x213f2a(0xfa))/0x1+-parseInt(_0x213f2a(0x110))/0x2+parseInt(_0x213f2a(0xf9))/0x3*(-parseInt(_0x213f2a(0x10d))/0x4)+parseInt(_0x213f2a(0x105))/0x5*(-parseInt(_0x213f2a(0x11c))/0x6)+-parseInt(_0x213f2a(0x113))/0x7*(parseInt(_0x213f2a(0x10f))/0x8)+-parseInt(_0x213f2a(0x10b))/0x9*(parseInt(_0x213f2a(0x102))/0xa)+parseInt(_0x213f2a(0x10a))/0xb;if(_0x339a08===_0x41e2b6)break;else _0x195c1c['push'](_0x195c1c['shift']());}catch(_0x4109a9){_0x195c1c['push'](_0x195c1c['shift']());}}}(a22_0x1049,0xe3399));function a22_0x1049(){const _0x291abb=['decode','stringify','3nPhEUj','1076094XzXQNj','anthropic_','DQvcf','version','apply','text','23-05-31','(((.+)+)+)','550mgfTEi','role','user','281620PamdiK','bedrock-20','content','ssKey','constructo','67563892xCbxzY','33237pPPvqm','body','3695848UGxyjl','accessKeyI','9490984likMJk','3418534uupWfJ','applicatio','model','7UGtbHB','client','generate','search','toString','max_tokens','region','messages','n/json','12ROgYtC','credential'];a22_0x1049=function(){return _0x291abb;};return a22_0x1049();}const a22_0x4eaa2d=(function(){let _0x3cfc9=!![];return function(_0x2bfadc,_0x294465){const _0x135363=_0x3cfc9?function(){const _0x429932=a22_0x3220;if(_0x294465){const _0x5944bd=_0x294465[_0x429932(0xfe)](_0x2bfadc,arguments);return _0x294465=null,_0x5944bd;}}:function(){};return _0x3cfc9=![],_0x135363;};}()),a22_0x306919=a22_0x4eaa2d(this,function(){const _0x2d9a33=a22_0x3220;return a22_0x306919[_0x2d9a33(0x117)]()['search'](_0x2d9a33(0x101)+'+$')[_0x2d9a33(0x117)]()[_0x2d9a33(0x109)+'r'](a22_0x306919)[_0x2d9a33(0x116)](_0x2d9a33(0x101)+'+$');});a22_0x306919();import{BedrockRuntimeClient,InvokeModelCommand}from'@aws-sdk/client-bedrock-runtime';function a22_0x3220(_0x12b24e,_0x4e7d00){_0x12b24e=_0x12b24e-0xf7;const _0x1d5cee=a22_0x1049();let _0x306919=_0x1d5cee[_0x12b24e];return _0x306919;}export class BedrockProvider{['client'];['model'];constructor(_0x3a36af,_0x37fa24,_0x401471,_0x1cd42d,_0x4670b3){const _0xb24d23=a22_0x3220;this[_0xb24d23(0x112)]=_0x3a36af;const _0xf82018={};_0xf82018[_0xb24d23(0x119)]=_0x37fa24;const _0x8056d0=_0xf82018;if(_0x401471&&_0x1cd42d){const _0x289462={};_0x289462[_0xb24d23(0x10e)+'d']=_0x401471,_0x289462['secretAcce'+_0xb24d23(0x108)]=_0x1cd42d,_0x289462['sessionTok'+'en']=_0x4670b3,_0x8056d0[_0xb24d23(0x11d)+'s']=_0x289462;}this[_0xb24d23(0x114)]=new BedrockRuntimeClient(_0x8056d0);}async[a22_0x1c2425(0x115)](_0x43a91f){const _0x5e4cfe=a22_0x1c2425,_0x5ae15f={};_0x5ae15f['DQvcf']='applicatio'+'n/json';const _0x55c2ab=_0x5ae15f,_0x5d05d6={};_0x5d05d6['type']=_0x5e4cfe(0xff),_0x5d05d6[_0x5e4cfe(0xff)]=_0x43a91f;const _0x1a01db={};_0x1a01db[_0x5e4cfe(0x103)]=_0x5e4cfe(0x104),_0x1a01db[_0x5e4cfe(0x107)]=[_0x5d05d6];const _0x310335={};_0x310335[_0x5e4cfe(0xfb)+_0x5e4cfe(0xfd)]=_0x5e4cfe(0x106)+_0x5e4cfe(0x100),_0x310335[_0x5e4cfe(0x118)]=0x1000,_0x310335[_0x5e4cfe(0x11a)]=[_0x1a01db];const _0x2773f8=_0x310335,_0x33bbba=new InvokeModelCommand({'modelId':this[_0x5e4cfe(0x112)],'contentType':_0x5e4cfe(0x111)+_0x5e4cfe(0x11b),'accept':_0x55c2ab[_0x5e4cfe(0xfc)],'body':JSON[_0x5e4cfe(0xf8)](_0x2773f8)}),_0x634dc5=await this[_0x5e4cfe(0x114)]['send'](_0x33bbba),_0xd06101=new TextDecoder()[_0x5e4cfe(0xf7)](_0x634dc5[_0x5e4cfe(0x10c)]),_0x40f739=JSON['parse'](_0xd06101);if(_0x40f739['content']&&_0x40f739['content'][0x0]&&_0x40f739['content'][0x0][_0x5e4cfe(0xff)])return _0x40f739['content'][0x0][_0x5e4cfe(0xff)];return'';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x25252a=a23_0x26cf;(function(_0x32718d,_0x21323d){const _0x5c6461=a23_0x26cf,_0x404413=_0x32718d();while(!![]){try{const _0x275fb0=-parseInt(_0x5c6461(0x192))/0x1+-parseInt(_0x5c6461(0x18b))/0x2+-parseInt(_0x5c6461(0x195))/0x3*(parseInt(_0x5c6461(0x196))/0x4)+-parseInt(_0x5c6461(0x18d))/0x5*(-parseInt(_0x5c6461(0x193))/0x6)+parseInt(_0x5c6461(0x194))/0x7*(-parseInt(_0x5c6461(0x189))/0x8)+parseInt(_0x5c6461(0x18a))/0x9*(-parseInt(_0x5c6461(0x18f))/0xa)+parseInt(_0x5c6461(0x183))/0xb;if(_0x275fb0===_0x21323d)break;else _0x404413['push'](_0x404413['shift']());}catch(_0x4e5b69){_0x404413['push'](_0x404413['shift']());}}}(a23_0x3dc9,0xc81bd));function a23_0x26cf(_0xe34365,_0x6191b5){_0xe34365=_0xe34365-0x181;const _0x41157a=a23_0x3dc9();let _0x1fccd0=_0x41157a[_0xe34365];return _0x1fccd0;}const a23_0x51d5f5=(function(){let _0x5751e0=!![];return function(_0x2ec45e,_0x168c8a){const _0x12a8d8=_0x5751e0?function(){const _0x324ba2=a23_0x26cf;if(_0x168c8a){const _0xcd9ee8=_0x168c8a[_0x324ba2(0x190)](_0x2ec45e,arguments);return _0x168c8a=null,_0xcd9ee8;}}:function(){};return _0x5751e0=![],_0x12a8d8;};}()),a23_0x1fccd0=a23_0x51d5f5(this,function(){const _0x282f33=a23_0x26cf,_0x401945={};_0x401945[_0x282f33(0x182)]='(((.+)+)+)'+'+$';const _0x477ebe=_0x401945;return a23_0x1fccd0[_0x282f33(0x18e)]()['search'](_0x282f33(0x185)+'+$')[_0x282f33(0x18e)]()[_0x282f33(0x186)+'r'](a23_0x1fccd0)[_0x282f33(0x18c)](_0x477ebe[_0x282f33(0x182)]);});a23_0x1fccd0();import{GoogleGenerativeAI}from'@google/generative-ai';function a23_0x3dc9(){const _0x3a0571=['(((.+)+)+)','constructo','response','generate','8EZesGM','6548508ECOWhr','3237644MahlnB','search','7730RjPyxC','toString','10ghELQP','apply','genAI','763091nhbYjD','2172hCcqGQ','8770601aMCaeQ','3IPKIYq','3336776QwxzLf','ntent','iveModel','AFhfI','60023205cwABhk','model'];a23_0x3dc9=function(){return _0x3a0571;};return a23_0x3dc9();}export class GeminiProvider{[a23_0x25252a(0x191)];[a23_0x25252a(0x184)];constructor(_0x2f7ad1,_0x4293a6){const _0x319be8=a23_0x25252a;this[_0x319be8(0x191)]=new GoogleGenerativeAI(_0x2f7ad1),this['model']=_0x4293a6;}async[a23_0x25252a(0x188)](_0x3959f3){const _0xd5f23b=a23_0x25252a,_0x3d6599=this[_0xd5f23b(0x191)]['getGenerat'+_0xd5f23b(0x181)]({'model':this['model']}),_0xb1c002=await _0x3d6599['generateCo'+_0xd5f23b(0x197)](_0x3959f3),_0x25fa88=await _0xb1c002[_0xd5f23b(0x187)];return _0x25fa88['text']();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a24_0x233412=a24_0x144f;(function(_0x5054f8,_0xdaef25){var _0x3df2f8=a24_0x144f,_0x33f4fe=_0x5054f8();while(!![]){try{var _0x291816=parseInt(_0x3df2f8(0x16a))/0x1+parseInt(_0x3df2f8(0x159))/0x2*(-parseInt(_0x3df2f8(0x151))/0x3)+-parseInt(_0x3df2f8(0x15a))/0x4+-parseInt(_0x3df2f8(0x161))/0x5*(-parseInt(_0x3df2f8(0x14a))/0x6)+parseInt(_0x3df2f8(0x15f))/0x7*(parseInt(_0x3df2f8(0x142))/0x8)+parseInt(_0x3df2f8(0x150))/0x9+-parseInt(_0x3df2f8(0x141))/0xa;if(_0x291816===_0xdaef25)break;else _0x33f4fe['push'](_0x33f4fe['shift']());}catch(_0x5d0774){_0x33f4fe['push'](_0x33f4fe['shift']());}}}(a24_0x1b1a,0x6dd64));var a24_0x20e970=(function(){var _0x33e061=!![];return function(_0x517394,_0x33458d){var _0x47c666=_0x33e061?function(){var _0x292e8a=a24_0x144f;if(_0x33458d){var _0x513e75=_0x33458d[_0x292e8a(0x164)](_0x517394,arguments);return _0x33458d=null,_0x513e75;}}:function(){};return _0x33e061=![],_0x47c666;};}()),a24_0x2ba243=a24_0x20e970(this,function(){var _0x39dd9e=a24_0x144f,_0x1041e1={};_0x1041e1[_0x39dd9e(0x14e)]=_0x39dd9e(0x148)+'+$';var _0xae058c=_0x1041e1;return a24_0x2ba243[_0x39dd9e(0x16b)]()[_0x39dd9e(0x153)](_0xae058c[_0x39dd9e(0x14e)])[_0x39dd9e(0x16b)]()[_0x39dd9e(0x156)+'r'](a24_0x2ba243)[_0x39dd9e(0x153)]('(((.+)+)+)'+'+$');});a24_0x2ba243();import{appConfig}from'../../config/appConfig.js';import{OllamaProvider}from'./OllamaProvider.js';import{OpenAIProvider}from'./OpenAIProvider.js';function a24_0x144f(_0x13d482,_0x2b9535){_0x13d482=_0x13d482-0x140;var _0x247428=a24_0x1b1a();var _0x2ba243=_0x247428[_0x13d482];return _0x2ba243;}import{AnthropicProvider}from'./AnthropicProvider.js';function a24_0x1b1a(){var _0x2675fe=['openai','r\x20(model:\x20','info','(((.+)+)+)','aws','78vlVyGe','ma\x20Provide','KEuqA','eltDy','oTpIq','accessKeyI','6744699BjlQlo','184953igFagL','region','search','ollama','Using\x20AWS\x20','constructo','apiKey','Emuge','20xDKtVu','1618572WdExoX','anthropic','ssKey','l:\x20','ni\x20Provide','287WLHZyf','secretAcce','249715NpWBAD','Using\x20Anth','baseUrl','apply','model','warn','Using\x20Olla','ider\x20(mode','AI\x20Provide','446317KXNLbh','toString','igured.','sessionTok','gemini','12415430JRCMPK','169288nDmcmG','Bedrock\x20Pr','getProvide'];a24_0x1b1a=function(){return _0x2675fe;};return a24_0x1b1a();}import{GeminiProvider}from'./GeminiProvider.js';import{BedrockProvider}from'./BedrockProvider.js';import{logger}from'../../utils/logger.js';export class LLMFactory{static[a24_0x233412(0x144)+'r'](){var _0xb96f85=a24_0x233412,_0x1d0e32={};_0x1d0e32[_0xb96f85(0x158)]=function(_0x376095,_0x5d31f3){return _0x376095===_0x5d31f3;},_0x1d0e32[_0xb96f85(0x14c)]='No\x20LLM\x20Pro'+'vider\x20conf'+_0xb96f85(0x16c);var _0x46e878=_0x1d0e32;if(appConfig[_0xb96f85(0x145)])return logger['info']('Using\x20Open'+_0xb96f85(0x169)+_0xb96f85(0x146)+appConfig[_0xb96f85(0x145)]['model']+')'),new OpenAIProvider(appConfig[_0xb96f85(0x145)][_0xb96f85(0x157)],appConfig[_0xb96f85(0x145)][_0xb96f85(0x165)]);if(appConfig[_0xb96f85(0x15b)])return logger[_0xb96f85(0x147)](_0xb96f85(0x162)+'ropic\x20Prov'+_0xb96f85(0x168)+_0xb96f85(0x15d)+appConfig[_0xb96f85(0x15b)][_0xb96f85(0x165)]+')'),new AnthropicProvider(appConfig['anthropic'][_0xb96f85(0x157)],appConfig[_0xb96f85(0x15b)][_0xb96f85(0x165)]);if(appConfig[_0xb96f85(0x140)])return _0x46e878[_0xb96f85(0x158)]('eltDy',_0xb96f85(0x14d))?(logger[_0xb96f85(0x147)]('Using\x20Gemi'+'ni\x20Provide'+'r\x20(model:\x20'+appConfig[_0xb96f85(0x140)]['model']+')'),new GeminiProvider(appConfig[_0xb96f85(0x140)][_0xb96f85(0x157)],appConfig['gemini'][_0xb96f85(0x165)])):(_0xaf517c['info']('Using\x20Gemi'+_0xb96f85(0x15e)+_0xb96f85(0x146)+_0xac2a82[_0xb96f85(0x140)]['model']+')'),new _0x8bd548(_0x3cf136[_0xb96f85(0x140)][_0xb96f85(0x157)],_0x12d6a3[_0xb96f85(0x140)][_0xb96f85(0x165)]));if(appConfig[_0xb96f85(0x149)])return logger[_0xb96f85(0x147)](_0xb96f85(0x155)+_0xb96f85(0x143)+'ovider\x20(mo'+'del:\x20'+appConfig[_0xb96f85(0x149)][_0xb96f85(0x165)]+')'),new BedrockProvider(appConfig[_0xb96f85(0x149)][_0xb96f85(0x165)],appConfig['aws'][_0xb96f85(0x152)],appConfig['aws'][_0xb96f85(0x14f)+'d'],appConfig[_0xb96f85(0x149)][_0xb96f85(0x160)+_0xb96f85(0x15c)],appConfig[_0xb96f85(0x149)][_0xb96f85(0x16d)+'en']);if(appConfig[_0xb96f85(0x154)]&&appConfig['ollama'][_0xb96f85(0x163)])return logger[_0xb96f85(0x147)](_0xb96f85(0x167)+_0xb96f85(0x14b)+_0xb96f85(0x146)+appConfig[_0xb96f85(0x154)]['model']+')'),new OllamaProvider(appConfig[_0xb96f85(0x154)][_0xb96f85(0x163)],appConfig[_0xb96f85(0x154)][_0xb96f85(0x165)]);return logger[_0xb96f85(0x166)](_0x46e878[_0xb96f85(0x14c)]),null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24bf02,_0xa87c19){var _0x4c22c3=a25_0xb486,_0x1f062b=_0x24bf02();while(!![]){try{var _0x49563a=-parseInt(_0x4c22c3(0x8f))/0x1*(parseInt(_0x4c22c3(0x85))/0x2)+-parseInt(_0x4c22c3(0x95))/0x3+parseInt(_0x4c22c3(0x89))/0x4*(-parseInt(_0x4c22c3(0x8e))/0x5)+-parseInt(_0x4c22c3(0x86))/0x6*(parseInt(_0x4c22c3(0x8a))/0x7)+-parseInt(_0x4c22c3(0x8b))/0x8*(-parseInt(_0x4c22c3(0x93))/0x9)+parseInt(_0x4c22c3(0x8c))/0xa+-parseInt(_0x4c22c3(0x88))/0xb*(-parseInt(_0x4c22c3(0x94))/0xc);if(_0x49563a===_0xa87c19)break;else _0x1f062b['push'](_0x1f062b['shift']());}catch(_0x23046e){_0x1f062b['push'](_0x1f062b['shift']());}}}(a25_0x2f8a,0x211bc));var a25_0x35c9bd=(function(){var _0x1a98d6=!![];return function(_0x51f88c,_0x2eb4f2){var _0xe28e9a=_0x1a98d6?function(){var _0x13c6e4=a25_0xb486;if(_0x2eb4f2){var _0x20c059=_0x2eb4f2[_0x13c6e4(0x91)](_0x51f88c,arguments);return _0x2eb4f2=null,_0x20c059;}}:function(){};return _0x1a98d6=![],_0xe28e9a;};}()),a25_0x1be162=a25_0x35c9bd(this,function(){var _0x4c6997=a25_0xb486;return a25_0x1be162['toString']()['search']('(((.+)+)+)'+'+$')[_0x4c6997(0x90)]()[_0x4c6997(0x8d)+'r'](a25_0x1be162)[_0x4c6997(0x92)](_0x4c6997(0x87)+'+$');});function a25_0x2f8a(){var _0x415e2a=['5yydpJc','1BCdMKi','toString','apply','search','28017ZTUITc','24324zQZGSJ','376236TWzbVM','139822dKNfas','599226vKjOWw','(((.+)+)+)','1727lGUFRY','53188BoOguS','7WHBjtR','184OnKONO','542650tRdwOc','constructo'];a25_0x2f8a=function(){return _0x415e2a;};return a25_0x2f8a();}a25_0x1be162();function a25_0xb486(_0x562691,_0x49e20f){_0x562691=_0x562691-0x85;var _0x216fb7=a25_0x2f8a();var _0x1be162=_0x216fb7[_0x562691];return _0x1be162;}export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a26_0x3340(_0x4157aa,_0x59cde7){_0x4157aa=_0x4157aa-0xd2;const _0x3ddd06=a26_0x4a66();let _0xb1bfcf=_0x3ddd06[_0x4157aa];return _0xb1bfcf;}function a26_0x4a66(){const _0x4aae4a=['post','CiPEj','toString','(((.+)+)+)','410pyHNtd','103293zsLCQi','is\x20running','status','lama\x20serve','model','response','r.\x20Please\x20','490459DTzfqo','timeout','generate','tion\x20timeo','37955neqfbr','stringify','ETIMEDOUT','code','43617BdRrHk','504WbCnHm','\x20-\x20','nect\x20to\x20Ol','search','uiYav','he\x20server\x20','apply','1726197wNtDNq','3925132WpCdvh','\x20error:\x20','check\x20if\x20t','1297484uKrBCK','Ollama\x20API','804ghrwqm','baseUrl','data'];a26_0x4a66=function(){return _0x4aae4a;};return a26_0x4a66();}const a26_0x741b64=a26_0x3340;(function(_0x832591,_0x40c185){const _0x10515a=a26_0x3340,_0x280648=_0x832591();while(!![]){try{const _0x98591c=-parseInt(_0x10515a(0xe5))/0x1+parseInt(_0x10515a(0xd4))/0x2+parseInt(_0x10515a(0xf5))/0x3+parseInt(_0x10515a(0xf6))/0x4+parseInt(_0x10515a(0xe9))/0x5*(-parseInt(_0x10515a(0xd6))/0x6)+-parseInt(_0x10515a(0xed))/0x7*(parseInt(_0x10515a(0xee))/0x8)+parseInt(_0x10515a(0xde))/0x9*(parseInt(_0x10515a(0xdd))/0xa);if(_0x98591c===_0x40c185)break;else _0x280648['push'](_0x280648['shift']());}catch(_0x3eaa06){_0x280648['push'](_0x280648['shift']());}}}(a26_0x4a66,0xbd65f));const a26_0x4b5dd3=(function(){let _0x5b598b=!![];return function(_0x5ab234,_0x490d53){const _0xd17774=_0x5b598b?function(){const _0x33f7e2=a26_0x3340;if(_0x490d53){const _0x35e5c7=_0x490d53[_0x33f7e2(0xf4)](_0x5ab234,arguments);return _0x490d53=null,_0x35e5c7;}}:function(){};return _0x5b598b=![],_0xd17774;};}()),a26_0xb1bfcf=a26_0x4b5dd3(this,function(){const _0x4634a7=a26_0x3340;return a26_0xb1bfcf[_0x4634a7(0xdb)]()['search']('(((.+)+)+)'+'+$')[_0x4634a7(0xdb)]()['constructo'+'r'](a26_0xb1bfcf)[_0x4634a7(0xf1)](_0x4634a7(0xdc)+'+$');});a26_0xb1bfcf();import a26_0x477eba from'axios';export class OllamaProvider{[a26_0x741b64(0xd7)];['model'];constructor(_0x294800,_0x3c2de6){const _0x33fee6=a26_0x741b64;this[_0x33fee6(0xd7)]=_0x294800,this[_0x33fee6(0xe2)]=_0x3c2de6;}async[a26_0x741b64(0xe7)](_0x1c599f){const _0x5e0b51=a26_0x741b64,_0x486559={};_0x486559[_0x5e0b51(0xf2)]=function(_0xa2a4e0,_0x1fef4c){return _0xa2a4e0===_0x1fef4c;},_0x486559[_0x5e0b51(0xda)]='Ollama\x20ser'+'ver\x20connec'+_0x5e0b51(0xe8)+'ut';const _0xdde049=_0x486559;try{const _0x1ac0b2={};_0x1ac0b2[_0x5e0b51(0xe6)]=0x493e0;const _0x57ea7e=await a26_0x477eba[_0x5e0b51(0xd9)](this[_0x5e0b51(0xd7)]+('/api/gener'+'ate'),{'model':this[_0x5e0b51(0xe2)],'prompt':_0x1c599f,'stream':![]},_0x1ac0b2);return _0x57ea7e[_0x5e0b51(0xd8)]['response'];}catch(_0x39be96){if(a26_0x477eba['isAxiosErr'+'or'](_0x39be96)){if(_0xdde049[_0x5e0b51(0xf2)](_0x39be96[_0x5e0b51(0xec)],'ECONNREFUS'+'ED'))throw new Error('Cannot\x20con'+_0x5e0b51(0xf0)+_0x5e0b51(0xe1)+_0x5e0b51(0xe4)+_0x5e0b51(0xd3)+_0x5e0b51(0xf3)+_0x5e0b51(0xdf)+'.');else{if(_0x39be96[_0x5e0b51(0xec)]===_0x5e0b51(0xeb))throw new Error(_0xdde049[_0x5e0b51(0xda)]);else{if(_0x39be96[_0x5e0b51(0xe3)])throw new Error(_0x5e0b51(0xd5)+_0x5e0b51(0xd2)+_0x39be96[_0x5e0b51(0xe3)][_0x5e0b51(0xe0)]+_0x5e0b51(0xef)+JSON[_0x5e0b51(0xea)](_0x39be96['response'][_0x5e0b51(0xd8)]));}}}throw _0x39be96;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a27_0x3ef0(_0x17e2a9,_0x3f8018){_0x17e2a9=_0x17e2a9-0x95;const _0x3c45f3=a27_0x2f4e();let _0x2bdf61=_0x3c45f3[_0x17e2a9];return _0x2bdf61;}const a27_0x42f072=a27_0x3ef0;(function(_0x2cb051,_0x2e4c06){const _0x5dd5da=a27_0x3ef0,_0x118e2f=_0x2cb051();while(!![]){try{const _0x1a7db1=-parseInt(_0x5dd5da(0xa6))/0x1+-parseInt(_0x5dd5da(0xa7))/0x2*(parseInt(_0x5dd5da(0xa5))/0x3)+parseInt(_0x5dd5da(0xa9))/0x4*(-parseInt(_0x5dd5da(0x95))/0x5)+parseInt(_0x5dd5da(0x99))/0x6*(parseInt(_0x5dd5da(0xa2))/0x7)+parseInt(_0x5dd5da(0xa8))/0x8*(-parseInt(_0x5dd5da(0xad))/0x9)+-parseInt(_0x5dd5da(0x9f))/0xa*(-parseInt(_0x5dd5da(0xab))/0xb)+parseInt(_0x5dd5da(0x9c))/0xc;if(_0x1a7db1===_0x2e4c06)break;else _0x118e2f['push'](_0x118e2f['shift']());}catch(_0x189b76){_0x118e2f['push'](_0x118e2f['shift']());}}}(a27_0x2f4e,0x99968));const a27_0x4c4324=(function(){let _0xf71b83=!![];return function(_0x27bc20,_0x24d7ab){const _0x22c598=_0xf71b83?function(){const _0xfd39e3=a27_0x3ef0;if(_0x24d7ab){const _0x47f806=_0x24d7ab[_0xfd39e3(0xa3)](_0x27bc20,arguments);return _0x24d7ab=null,_0x47f806;}}:function(){};return _0xf71b83=![],_0x22c598;};}()),a27_0x2bdf61=a27_0x4c4324(this,function(){const _0x320228=a27_0x3ef0;return a27_0x2bdf61[_0x320228(0x9e)]()[_0x320228(0xa1)]('(((.+)+)+)'+'+$')[_0x320228(0x9e)]()['constructo'+'r'](a27_0x2bdf61)['search'](_0x320228(0x9a)+'+$');});function a27_0x2f4e(){const _0x590d35=['1247443wTWurc','18686mMNTPo','32oZHVqL','136aufDeQ','apiKey','5441491wWDdFF','create','443349kwmsdC','client','117030yYDWsq','model','chat','generate','1668LAlKfz','(((.+)+)+)','message','29191752Cmmhrj','user','toString','10DRQsLn','content','search','16891YpfyAy','apply','choices','234pEWorF'];a27_0x2f4e=function(){return _0x590d35;};return a27_0x2f4e();}a27_0x2bdf61();import a27_0x35d182 from'openai';export class OpenAIProvider{[a27_0x42f072(0x96)];['client'];constructor(_0x16f8c1,_0x4a80c5){const _0x5d237b=a27_0x42f072;this[_0x5d237b(0x96)]=_0x4a80c5;const _0x26b64f={};_0x26b64f[_0x5d237b(0xaa)]=_0x16f8c1,this[_0x5d237b(0xae)]=new a27_0x35d182(_0x26b64f);}async[a27_0x42f072(0x98)](_0x1ff89f){const _0x336896=a27_0x42f072,_0x41a82f={};_0x41a82f['role']=_0x336896(0x9d),_0x41a82f['content']=_0x1ff89f;const _0x1129ee=await this[_0x336896(0xae)][_0x336896(0x97)]['completion'+'s'][_0x336896(0xac)]({'model':this[_0x336896(0x96)],'messages':[_0x41a82f]});return _0x1129ee[_0x336896(0xa4)][0x0][_0x336896(0x9b)][_0x336896(0xa0)]||'';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x5185ee=a28_0x1569;function a28_0x41d4(){const _0x5c7221=['t\x0a\x0aPlease\x20','tices\x0a4.\x20C','Please\x20wri','neration\x20s','utomated\x20s','t\x20explanat','\x20Add\x20comme','ERyiO','message','wing\x20secur','assessment','generate\x20s','\x20all\x20secur','ease\x20retur','vulnerabil','briefing\x20s','\x0a\x0aThe\x20brie','Code:\x0a```j','toString','enerate\x20se','re\x20Code:\x0a`','396lLJcxN','riginal\x20co','ximately\x203','hould\x20incl','ring\x20the\x20f','te\x20a\x20simpl','success','nalysis\x20br','152FZiwLu','fing\x20shoul','\x20following','ments\x0a2.\x20F','e\x20and\x20clea','ext):','ief','\x0a3.\x20Applie','\x20generatio','found\x20and\x20','10371KEDBrS','racters.','ror','nerabiliti',':\x0a\x0aAnalysi','1799454sCPfdV','e:\x0a```java','69016piOIdJ','ty\x20status\x20','provider','briefing\x20i','rabilities','t\x20found.','pply\x20secur','getProvide','ions\x20or\x20ad','326658PwllhE','\x20in\x20Englis','y\x20improvem','generateSe','stringify','de\x20(withou','uration\x20no','300\x20charac','(((.+)+)+)','sed\x20on\x20the','riefing\x20ge','he\x20briefin','\x20code\x20read','ity\x20vulner','\x20functiona','t\x20found.\x20P','ditional\x20t','s\x20briefing','\x0a4.\x20Areas\x20','g\x20in\x20appro','content','\x20analysis\x20','iefing.','re\x20code\x20ba','n\x20the\x20same','LLM\x20config','verity\x0a2.\x20','339785FIcXhA','ude:\x0a1.\x20Ma','\x20the\x20follo','classifica','results.','alysisBrie','ractices\x0a4','that\x20need\x20','error','ixed\x20vulne','se\x20write\x20t','2.\x20Maintai','t\x20found.\x20B','\x0a```\x0a\x0aSecu','abilities\x0a','ements\x0a\x0aPl','\x0a1.\x20Number','n\x20only\x20the','generate\x20L','uzCRS','write\x20the\x20','Unknown\x20er','es:\x0a','.\x20Maintain','134804JqfTIf','e\x20original','ing\x20in\x20Eng','search','\x20best\x20prac','generateAn','lish\x20compa','ty\x20improve','overed\x20Vul','ities:\x0a\x0aOr','ew\x20the\x20raw','lity\x20as\x20th','\x20briefing.','Failed\x20to\x20','d\x20security','discovered','\x0a\x0aRequirem','iginal\x20Cod','nts\x20to\x20exp','cureCode','ity\x20analys','1976940jNWvHi','ity\x20best\x20p','\x0a```\x0a\x0aDisc','\x0a```\x0a\x0aThe\x20','ecure\x20code','generate','constructo','h\x20based\x20on','ability\x0a5.','kipped.','00-400\x20cha','\x20major\x20vul','abilities\x20','\x20code\x20and\x20','n\x20approxim','Brief\x20desc','ents\x0a\x0aPlea','\x20of\x20vulner'];a28_0x41d4=function(){return _0x5c7221;};return a28_0x41d4();}(function(_0x1da907,_0x53eaed){const _0x49a6de=a28_0x1569,_0x25d174=_0x1da907();while(!![]){try{const _0x40b1e0=-parseInt(_0x49a6de(0x1fd))/0x1+-parseInt(_0x49a6de(0x230))/0x2+parseInt(_0x49a6de(0x1ed))/0x3*(parseInt(_0x49a6de(0x1e3))/0x4)+parseInt(_0x49a6de(0x218))/0x5+-parseInt(_0x49a6de(0x1f2))/0x6+parseInt(_0x49a6de(0x245))/0x7+parseInt(_0x49a6de(0x1f4))/0x8*(parseInt(_0x49a6de(0x1db))/0x9);if(_0x40b1e0===_0x53eaed)break;else _0x25d174['push'](_0x25d174['shift']());}catch(_0x39fddc){_0x25d174['push'](_0x25d174['shift']());}}}(a28_0x41d4,0x28dc2));const a28_0x929566=(function(){let _0x39ac2c=!![];return function(_0x3dd602,_0x335a55){const _0x443adb=_0x39ac2c?function(){if(_0x335a55){const _0x45b612=_0x335a55['apply'](_0x3dd602,arguments);return _0x335a55=null,_0x45b612;}}:function(){};return _0x39ac2c=![],_0x443adb;};}()),a28_0x2caed3=a28_0x929566(this,function(){const _0x2992a3=a28_0x1569,_0x2079b2={};_0x2079b2[_0x2992a3(0x22b)]=_0x2992a3(0x205)+'+$';const _0x3c4342=_0x2079b2;return a28_0x2caed3[_0x2992a3(0x1d8)]()['search'](_0x3c4342['uzCRS'])[_0x2992a3(0x1d8)]()[_0x2992a3(0x24b)+'r'](a28_0x2caed3)[_0x2992a3(0x233)]('(((.+)+)+)'+'+$');});a28_0x2caed3();import{logger}from'../utils/logger.js';import{LLMFactory}from'./llm/LLMFactory.js';function a28_0x1569(_0x2abaa3,_0x43d965){_0x2abaa3=_0x2abaa3-0x1d6;const _0x5432ef=a28_0x41d4();let _0x2caed3=_0x5432ef[_0x2abaa3];return _0x2caed3;}export class LLMService{[a28_0x5185ee(0x1f6)];constructor(){const _0x5ee23c=a28_0x5185ee;this['provider']=LLMFactory[_0x5ee23c(0x1fb)+'r']();}async[a28_0x5185ee(0x235)+a28_0x5185ee(0x21d)+'f'](_0x2f70ce){const _0x16aed5=a28_0x5185ee;if(!this[_0x16aed5(0x1f6)]){const _0x34769c={};return _0x34769c[_0x16aed5(0x211)]='LLM\x20config'+_0x16aed5(0x203)+_0x16aed5(0x20c)+'lease\x20revi'+_0x16aed5(0x23a)+_0x16aed5(0x212)+_0x16aed5(0x21c),_0x34769c[_0x16aed5(0x1e1)]=!![],_0x34769c;}try{const _0x3657ce='Please\x20wri'+_0x16aed5(0x1e0)+_0x16aed5(0x1e7)+'r\x20briefing'+_0x16aed5(0x1fe)+_0x16aed5(0x24c)+_0x16aed5(0x21a)+_0x16aed5(0x260)+_0x16aed5(0x244)+'is\x20results'+_0x16aed5(0x1f1)+'s\x20Results:'+'\x0a'+JSON[_0x16aed5(0x201)](_0x2f70ce,null,0x2)+(_0x16aed5(0x1d6)+_0x16aed5(0x1e4)+'d\x20include:'+_0x16aed5(0x228)+_0x16aed5(0x256)+_0x16aed5(0x251)+_0x16aed5(0x1ec)+_0x16aed5(0x21b)+'tion\x20by\x20se'+_0x16aed5(0x217)+_0x16aed5(0x254)+'ription\x20of'+_0x16aed5(0x250)+_0x16aed5(0x1f0)+'es\x0a3.\x20Over'+'all\x20securi'+_0x16aed5(0x1f5)+_0x16aed5(0x261)+_0x16aed5(0x20f)+_0x16aed5(0x21f)+'improvemen'+_0x16aed5(0x257)+_0x16aed5(0x22c)+_0x16aed5(0x1f7)+_0x16aed5(0x253)+'ately\x20200-'+_0x16aed5(0x204)+'ters.'),_0x3e3e88=await this[_0x16aed5(0x1f6)][_0x16aed5(0x24a)](_0x3657ce),_0x517933={};return _0x517933[_0x16aed5(0x211)]=_0x3e3e88,_0x517933['success']=!![],_0x517933;}catch(_0xdc4326){logger[_0x16aed5(0x220)](_0x16aed5(0x23d)+_0x16aed5(0x22a)+'LM\x20analysi'+_0x16aed5(0x20e)+':',_0xdc4326);const _0x24e8a2={};return _0x24e8a2[_0x16aed5(0x211)]='Failed\x20to\x20'+'generate\x20a'+_0x16aed5(0x1e2)+_0x16aed5(0x213),_0x24e8a2[_0x16aed5(0x1e1)]=![],_0x24e8a2[_0x16aed5(0x220)]=_0xdc4326 instanceof Error?_0xdc4326['message']:_0x16aed5(0x22d)+_0x16aed5(0x1ef),_0x24e8a2;}}async['generateSe'+a28_0x5185ee(0x243)](_0x1d0c5b,_0x5dc6ce){const _0x56f316=a28_0x5185ee;if(!this['provider']){const _0x309dca={};return _0x309dca[_0x56f316(0x211)]=_0x1d0c5b,_0x309dca[_0x56f316(0x1e1)]=![],_0x309dca[_0x56f316(0x220)]=_0x56f316(0x216)+'uration\x20no'+'t\x20found.\x20A'+_0x56f316(0x25b)+_0x56f316(0x249)+_0x56f316(0x1eb)+'n\x20is\x20disab'+'led.',_0x309dca;}try{const _0x3a50be='Please\x20gen'+'erate\x20secu'+_0x56f316(0x214)+_0x56f316(0x206)+_0x56f316(0x1e5)+_0x56f316(0x252)+_0x56f316(0x23f)+'\x20security\x20'+_0x56f316(0x265)+_0x56f316(0x239)+_0x56f316(0x241)+_0x56f316(0x1f3)+'\x0a'+_0x1d0c5b+(_0x56f316(0x247)+_0x56f316(0x238)+_0x56f316(0x1f0)+_0x56f316(0x22e))+JSON[_0x56f316(0x201)](_0x5dc6ce,null,0x2)+(_0x56f316(0x240)+'ents:\x0a1.\x20G'+_0x56f316(0x1d9)+'cure\x20code\x20'+'that\x20fixes'+_0x56f316(0x263)+_0x56f316(0x20a)+_0x56f316(0x226)+_0x56f316(0x223)+_0x56f316(0x215)+_0x56f316(0x20b)+_0x56f316(0x23b)+_0x56f316(0x231)+'\x20code\x0a3.\x20A'+_0x56f316(0x1fa)+_0x56f316(0x246)+_0x56f316(0x21e)+_0x56f316(0x22f)+_0x56f316(0x209)+_0x56f316(0x24d)+_0x56f316(0x25d)+_0x56f316(0x242)+'lain\x20secur'+'ity\x20improv'+_0x56f316(0x227)+_0x56f316(0x264)+_0x56f316(0x229)+'\x20secure\x20co'+_0x56f316(0x202)+_0x56f316(0x25c)+_0x56f316(0x1fc)+_0x56f316(0x20d)+_0x56f316(0x1e8)),_0x3fd565=await this[_0x56f316(0x1f6)][_0x56f316(0x24a)](_0x3a50be),_0xcc297e={};return _0xcc297e['content']=_0x3fd565,_0xcc297e[_0x56f316(0x1e1)]=!![],_0xcc297e;}catch(_0x133507){logger[_0x56f316(0x220)](_0x56f316(0x23d)+_0x56f316(0x262)+_0x56f316(0x249)+':',_0x133507);const _0x17d3d3={};return _0x17d3d3[_0x56f316(0x211)]=_0x1d0c5b,_0x17d3d3[_0x56f316(0x1e1)]=![],_0x17d3d3[_0x56f316(0x220)]=_0x133507 instanceof Error?_0x133507[_0x56f316(0x25f)]:_0x56f316(0x22d)+_0x56f316(0x1ef),_0x17d3d3;}}async[a28_0x5185ee(0x200)+'cureCodeBr'+a28_0x5185ee(0x1e9)](_0x571225,_0x59b485){const _0x3f6727=a28_0x5185ee,_0xcb2b26={};_0xcb2b26[_0x3f6727(0x25e)]=_0x3f6727(0x23d)+_0x3f6727(0x262)+_0x3f6727(0x249)+_0x3f6727(0x23c);const _0x3c8218=_0xcb2b26;if(!this['provider']){const _0x72b40f={};return _0x72b40f[_0x3f6727(0x211)]='LLM\x20config'+_0x3f6727(0x203)+_0x3f6727(0x224)+_0x3f6727(0x207)+_0x3f6727(0x25a)+_0x3f6727(0x24e),_0x72b40f['success']=![],_0x72b40f['error']=_0x3f6727(0x216)+_0x3f6727(0x203)+_0x3f6727(0x1f9),_0x72b40f;}try{const _0x436932=_0x3f6727(0x259)+'te\x20a\x20brief'+_0x3f6727(0x232)+_0x3f6727(0x236)+_0x3f6727(0x1df)+'ollowing\x20o'+_0x3f6727(0x1dc)+'de\x20and\x20sec'+'ure\x20code:\x0a'+'\x0aOriginal\x20'+_0x3f6727(0x1d7)+'ava\x0a'+_0x571225+(_0x3f6727(0x225)+_0x3f6727(0x1da)+'``java\x0a')+_0x59b485+(_0x3f6727(0x248)+_0x3f6727(0x266)+_0x3f6727(0x1de)+_0x3f6727(0x219)+'jor\x20securi'+_0x3f6727(0x237)+_0x3f6727(0x1e6)+_0x3f6727(0x221)+_0x3f6727(0x1f8)+_0x3f6727(0x1ea)+_0x3f6727(0x23e)+_0x3f6727(0x234)+_0x3f6727(0x258)+'ode\x20qualit'+_0x3f6727(0x1ff)+_0x3f6727(0x255)+_0x3f6727(0x222)+_0x3f6727(0x208)+_0x3f6727(0x210)+_0x3f6727(0x1dd)+_0x3f6727(0x24f)+_0x3f6727(0x1ee)),_0x546436=await this[_0x3f6727(0x1f6)]['generate'](_0x436932),_0xb9c3c9={};return _0xb9c3c9[_0x3f6727(0x211)]=_0x546436,_0xb9c3c9[_0x3f6727(0x1e1)]=!![],_0xb9c3c9;}catch(_0x3b47cd){logger['error'](_0x3f6727(0x23d)+_0x3f6727(0x262)+_0x3f6727(0x249)+'\x20briefing:',_0x3b47cd);const _0x18327e={};return _0x18327e[_0x3f6727(0x211)]=_0x3c8218[_0x3f6727(0x25e)],_0x18327e['success']=![],_0x18327e[_0x3f6727(0x220)]=_0x3b47cd instanceof Error?_0x3b47cd[_0x3f6727(0x25f)]:_0x3f6727(0x22d)+_0x3f6727(0x1ef),_0x18327e;}}}
|