@offgridsec/kira-lite-mcp 0.1.3 → 0.1.4
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/README.md +486 -34
- package/dist/config.d.ts +1 -0
- package/dist/config.js +1 -1
- package/dist/core/engines/kira-core.js +1 -1
- package/dist/core/engines/osv.js +1 -485
- package/dist/core/engines/runner.js +1 -30
- package/dist/core/scanner.js +1 -101
- package/dist/core/types.js +1 -1
- package/dist/core/utils.js +1 -70
- package/dist/index.js +1 -477
- package/dist/rules/c-cpp.js +1 -202
- package/dist/rules/cicd.js +1 -144
- package/dist/rules/csharp.js +1 -207
- package/dist/rules/docker.js +1 -143
- package/dist/rules/go.js +1 -184
- package/dist/rules/index.js +1 -147
- package/dist/rules/java.js +1 -1
- package/dist/rules/javascript-extended.js +1 -1
- package/dist/rules/javascript.js +1 -1
- package/dist/rules/kubernetes.js +1 -1
- package/dist/rules/php.js +1 -1
- package/dist/rules/python-extended.js +1 -1
- package/dist/rules/python.js +1 -1
- package/dist/rules/ruby.js +1 -1
- package/dist/rules/secrets-extended.js +1 -1
- package/dist/rules/secrets.js +1 -1
- package/dist/rules/shell.js +1 -1
- package/dist/rules/terraform.js +1 -1
- package/dist/telemetry.js +1 -1
- package/dist/tools/fix-vulnerability.js +1 -1
- package/dist/tools/scan-code.js +1 -1
- package/dist/tools/scan-dependencies.js +1 -1
- package/dist/tools/scan-diff.js +1 -1
- package/dist/tools/scan-file.js +1 -1
- package/package.json +1 -1
package/dist/tools/scan-file.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a3880,_0x3473c5){const _0x520634={_0x55e147:0x43f,_0x18c971:0x3d6,_0x45fb9d:0x3c3,_0x4d8411:0x3c1,_0x3e65f0:0x472,_0x1dcc2c:0x419,_0x5a009c:0x3d8,_0x33a4c5:0x3fc,_0x596f00:0x3d2,_0x543b11:0x3ac,_0x4cb572:0x448,_0x3de381:0x426,_0x118ade:0x439,_0xd925fd:0x45e},_0xb4e478={_0x273e07:0x36b};function _0x5d39fd(_0x1e2c8b,_0x4fd5b1){return _0x3cb3(_0x1e2c8b-0x2fa,_0x4fd5b1);}function _0x30623e(_0x3561cf,_0x2322c1){return _0x3cb3(_0x3561cf-_0xb4e478._0x273e07,_0x2322c1);}const _0x117716=_0x3a3880();while(!![]){try{const _0x35e20a=parseInt(_0x30623e(0x43e,_0x520634._0x55e147))/(0x45*0x56+0x4*-0x875+0x38d*0x3)*(parseInt(_0x5d39fd(_0x520634._0x18c971,0x3dc))/(-0x148+0xd6*-0xe+0x1*0xcfe))+parseInt(_0x5d39fd(_0x520634._0x45fb9d,_0x520634._0x4d8411))/(-0x6a*-0x2f+0x9*0xe0+0x1b53*-0x1)+-parseInt(_0x30623e(0x457,_0x520634._0x3e65f0))/(-0x3d9*0x4+-0x1*-0xff5+0x3*-0x2f)*(-parseInt(_0x30623e(_0x520634._0x1dcc2c,0x408))/(-0x1*-0x61b+-0x1f2a+0x1914))+parseInt(_0x30623e(0x458,0x43e))/(-0x19bf+-0x26a0+-0x933*-0x7)+parseInt(_0x30623e(0x42d,0x44a))/(0x153b+-0x7*-0x133+-0x1d99*0x1)*(-parseInt(_0x5d39fd(_0x520634._0x5a009c,_0x520634._0x33a4c5))/(0x2*-0xbea+0x3*0xc9d+-0xdfb))+parseInt(_0x30623e(0x43d,0x438))/(0x10*-0x80+0xe9*0x1+0x720)*(parseInt(_0x5d39fd(_0x520634._0x596f00,_0x520634._0x543b11))/(-0x19d5+0xe14+0xbcb))+-parseInt(_0x30623e(_0x520634._0x4cb572,_0x520634._0x3de381))/(0x193*-0xb+0x9f*0x3b+0x1*-0x1349)*(parseInt(_0x30623e(_0x520634._0x118ade,_0x520634._0xd925fd))/(0x270f+-0x3*-0xb92+-0x49b9));if(_0x35e20a===_0x3473c5)break;else _0x117716['push'](_0x117716['shift']());}catch(_0x1baecb){_0x117716['push'](_0x117716['shift']());}}}(_0x237d,-0x525ae+-0x1dfee+0xa68d9));import{readFileSync}from'node:fs';import{KiraScanner}from'../core/scanner.js';const scanner=new KiraScanner();function _0x3cb3(_0x28789a,_0xf73b16){_0x28789a=_0x28789a-(0x1be3+-0x23*-0x16+-0x1e42);const _0x2e8b59=_0x237d();let _0x547887=_0x2e8b59[_0x28789a];if(_0x3cb3['DSrVlL']===undefined){var _0x5a8cea=function(_0x2b0f0f){const _0x16ae57='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a47dd='',_0xa24447='';for(let _0x4a71a7=-0x1*0xabf+-0x4cc+0xf8b,_0x40f158,_0xd288f1,_0x278abb=0x1190+0x4c8+-0x1658;_0xd288f1=_0x2b0f0f['charAt'](_0x278abb++);~_0xd288f1&&(_0x40f158=_0x4a71a7%(0x1*0x548+-0x2330+0x1dec)?_0x40f158*(-0x18eb+0x18e4+0x47)+_0xd288f1:_0xd288f1,_0x4a71a7++%(0x2d*-0x89+-0x1a69+0x5*0xa1a))?_0x5a47dd+=String['fromCharCode'](0x1*0x1541+-0x10*0x7f+-0x53*0x26&_0x40f158>>(-(0x1ca1+0x2511+-0x41b0)*_0x4a71a7&-0x3*0x4f0+0xeae+0x28)):-0x2616+0x228+-0xbfa*-0x3){_0xd288f1=_0x16ae57['indexOf'](_0xd288f1);}for(let _0xa70926=0x1552+-0x77+-0x119*0x13,_0x457c47=_0x5a47dd['length'];_0xa70926<_0x457c47;_0xa70926++){_0xa24447+='%'+('00'+_0x5a47dd['charCodeAt'](_0xa70926)['toString'](-0x31*-0x11+-0x12ad*-0x1+-0x3*0x74a))['slice'](-(-0x57b+-0xbdd*0x2+0x1d37));}return decodeURIComponent(_0xa24447);};_0x3cb3['XLfpLW']=_0x5a8cea,_0x3cb3['nyRKQc']={},_0x3cb3['DSrVlL']=!![];}const _0x19fbfd=_0x2e8b59[0x15d*0x1a+0x2263+-0x45d5],_0x4c00fe=_0x28789a+_0x19fbfd,_0x1753c0=_0x3cb3['nyRKQc'][_0x4c00fe];return!_0x1753c0?(_0x547887=_0x3cb3['XLfpLW'](_0x547887),_0x3cb3['nyRKQc'][_0x4c00fe]=_0x547887):_0x547887=_0x1753c0,_0x547887;}function _0x237d(){const _0x4b9d6f=['zNjVBsa','ChjVCgu','C3vTBwe','Aw5Nigy','uhjVz3i','zgvZy3i','Axn0Aw4','zwn1CMK','DhKGDNu','EM9LrgC','y3rLzca','DMLKzwq','mtrXt2fnzLa','DxrLiha','yw1TAw4','ihjLywq','s2LYys0','qwjZB2W','CMvK','mte1nZaZnevSsuDjzq','DwLSDc0','ywDL','C2nHBL8','zwrmAw4','mtjtCMz1B3K','Cgf0Aa','zw5NAw4','C2nHBG','oujnzhvwyq','m0feBgvpAW','q29Yzsa','BgvZlG','BgfUz3u','BMfTzq','mJm1mJuYmfbgsxLxDW','DhLWzq','lwrLDgu','CMLKzsa','nJrnseLhz0S','nJq4mJe3ow9mvgzmrG','mte1ntK3nKH2AuzpAq','yw5Kigi','Dw5RBM8','C2nHBM4','AwvZihu','igzPBgu','Aw5WDxq','zM9Yihm','y2XLyw4','BMDZ','AwXLoIa','yxrOihq','ihrVihm','u2nOzw0','mta3nZK2tMDQwKDI','nZCZntK4tgzfB2nR','C3rYAw4','Axb0Aw8','zYbMAwW','BwvZC2e','zMLUzgK','zgLZAYa','y29Kzq','u2nHBIa','zxH0zw4','zsbVBIa','Bg5LCMe','nJveww9LBfa','yw1L','zMLSzv8','kgf1Dg8','yw4GzxG','zMLSzq','z3vHz2u','C3rHDhu'];_0x237d=function(){return _0x4b9d6f;};return _0x237d();}function _0x1dbec6(_0x1293c7,_0x4d21cf){return _0x3cb3(_0x1293c7-0x24,_0x4d21cf);}export async function scanFile(_0x4c00fe){const _0x583552={_0x381360:0x65,_0x39d422:0x423,_0x446bc9:0x406,_0x215daf:0x454,_0x4491ea:0x450,_0x1e442d:0x444,_0x298d3f:0x442,_0xdb745d:0x36,_0x12ad71:0x44f,_0xf3d775:0x465,_0xc88d1c:0x426,_0x419d4c:0x3c,_0x10d203:0x43e,_0x12f9ec:0x445,_0x30040c:0x45e,_0x36338d:0x42,_0x380855:0x4f,_0x18193a:0x74,_0x142c2f:0x419,_0x52a29e:0x44b},_0x43347c={_0x539c6d:0x124};function _0x651f3d(_0x4fee7b,_0x440bb5){return _0x3cb3(_0x4fee7b-0x36e,_0x440bb5);}const _0x1753c0={'zoeDg':function(_0x5a47dd,_0xa24447,_0x4a71a7){return _0x5a47dd(_0xa24447,_0x4a71a7);},'OjSgA':'utf-8','keWle':function(_0x40f158,_0xd288f1){return _0x40f158 instanceof _0xd288f1;}};let _0x2b0f0f;function _0x3ef160(_0x31e23c,_0x285fc){return _0x3cb3(_0x285fc- -_0x43347c._0x539c6d,_0x31e23c);}try{_0x2b0f0f=_0x1753c0[_0x3ef160(-0x5e,-_0x583552._0x381360)](readFileSync,_0x4c00fe[_0x3ef160(-0x82,-0x74)+_0x3ef160(-0x6a,-0x55)],_0x1753c0['OjSgA']);}catch(_0x278abb){const _0xa70926=_0x1753c0['keWle'](_0x278abb,Error)?_0x278abb[_0x3ef160(-0x60,-0x7e)+'ge']:String(_0x278abb),_0x457c47={};return _0x457c47[_0x651f3d(_0x583552._0x39d422,_0x583552._0x446bc9)+'s']=_0x651f3d(_0x583552._0x215daf,_0x583552._0x4491ea),_0x457c47[_0x651f3d(_0x583552._0x1e442d,_0x583552._0x298d3f)+_0x3ef160(-0x50,-0x59)]=_0x3ef160(-_0x583552._0xdb745d,-0x44)+'wn',_0x457c47[_0x651f3d(_0x583552._0x12ad71,0x450)+_0x3ef160(-0x70,-0x57)+'es']=0x0,_0x457c47[_0x3ef160(-0x7c,-0x7d)+_0x651f3d(0x455,_0x583552._0xf3d775)]=[],_0x457c47[_0x651f3d(_0x583552._0xc88d1c,0x43b)+'ry']='Error'+_0x651f3d(0x433,0x458)+_0x651f3d(0x427,0x443)+_0x3ef160(-0x4d,-_0x583552._0x419d4c)+_0xa70926,_0x457c47[_0x651f3d(_0x583552._0x10d203,_0x583552._0x12f9ec)+'es']=[],_0x457c47;}const _0x16ae57={};return _0x16ae57[_0x651f3d(0x417,0x40d)]=_0x2b0f0f,_0x16ae57[_0x651f3d(0x444,_0x583552._0x30040c)+_0x3ef160(-_0x583552._0x36338d,-0x59)]=_0x4c00fe[_0x651f3d(_0x583552._0x1e442d,0x45b)+'age'],_0x16ae57['filen'+_0x3ef160(-0x5f,-0x75)]=_0x4c00fe[_0x3ef160(-_0x583552._0x380855,-_0x583552._0x18193a)+_0x651f3d(0x43d,_0x583552._0x142c2f)],scanner[_0x651f3d(0x43f,_0x583552._0x52a29e)](_0x16ae57);}const _0xf73b16={};_0xf73b16[_0x1dbec6(0xfd,0x104)]=_0x54acf3(0x482,0x495)+'g',_0xf73b16[_0x54acf3(0x49a,0x48e)+'iptio'+'n']=_0x54acf3(0x4a6,0x4bf)+_0x54acf3(0x4a2,0x4c3)+_0x54acf3(0x4c8,0x4ba)+'o\x20the'+_0x1dbec6(0x107,0x128)+_0x54acf3(0x4c9,0x4b6)+'can';const _0x2e8b59={};_0x2e8b59[_0x1dbec6(0xfd,0x113)]=_0x54acf3(0x482,0x48c)+'g',_0x2e8b59[_0x1dbec6(0xdf,0x101)+_0x1dbec6(0xc8,0xc9)+'n']=_0x54acf3(0x499,0x496)+_0x54acf3(0x4a3,0x47d)+'g\x20lan'+_0x1dbec6(0xd8,0xfb)+'\x20over'+_0x1dbec6(0xff,0xf6)+_0x1dbec6(0xd5,0xdc)+_0x1dbec6(0xfe,0x10c)+_0x54acf3(0x49f,0x4c5)+_0x54acf3(0x495,0x495)+_0x54acf3(0x48a,0x47d)+'sion\x20'+'if\x20no'+'t\x20pro'+_0x54acf3(0x4a0,0x47a)+')';const _0x547887={};_0x547887[_0x54acf3(0x48f,0x4ac)+_0x1dbec6(0xf3,0x102)]=_0xf73b16;function _0x54acf3(_0xd1d043,_0x9795e9){const _0x459ad7={_0x3794d0:0x3df};return _0x3cb3(_0xd1d043-_0x459ad7._0x3794d0,_0x9795e9);}_0x547887[_0x54acf3(0x4b5,0x49d)+'age']=_0x2e8b59;const _0x5a8cea={};_0x5a8cea['type']='objec'+'t',_0x5a8cea[_0x1dbec6(0xdb,0xe0)+'rties']=_0x547887,_0x5a8cea['requi'+_0x1dbec6(0xec,0xf4)]=[_0x1dbec6(0xd4,0xe6)+_0x54acf3(0x4ae,0x4d1)];const _0x19fbfd={};_0x19fbfd[_0x54acf3(0x4b6,0x4c0)]=_0x54acf3(0x4ab,0x4be)+_0x1dbec6(0xd7,0xde),_0x19fbfd[_0x54acf3(0x49a,0x488)+_0x54acf3(0x483,0x48e)+'n']=_0x54acf3(0x489,0x4ab)+_0x1dbec6(0xd6,0xce)+_0x54acf3(0x49b,0x489)+_0x54acf3(0x484,0x48e)+_0x54acf3(0x48b,0x46d)+_0x54acf3(0x487,0x498)+_0x54acf3(0x4c4,0x4c3)+_0x1dbec6(0xe1,0xc1)+_0x1dbec6(0xe2,0xc7)+_0x1dbec6(0xd1,0xcc)+'bilit'+_0x54acf3(0x4c1,0x4e3)+'sing\x20'+_0x1dbec6(0xea,0x10f)+_0x54acf3(0x4b3,0x4b6)+_0x1dbec6(0x103,0xec)+_0x54acf3(0x4a9,0x48c)+'in\x20ru'+_0x1dbec6(0xf9,0xdc),_0x19fbfd[_0x54acf3(0x4c3,0x4a4)+_0x1dbec6(0x10f,0xec)+'a']=_0x5a8cea;export const scanFileToolDefinition=_0x19fbfd;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@offgridsec/kira-lite-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Kira-Lite MCP Server — Real-time security scanning for AI coding assistants",
|
|
5
5
|
"author": "Offgrid Security <contact@offgridsec.com>",
|
|
6
6
|
"homepage": "https://offgridsec.com",
|