vigile-scan 2.1.0 → 3.0.0

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/index.js CHANGED
@@ -31,7 +31,7 @@ var require_package = __commonJS({
31
31
  "package.json"(exports2, module2) {
32
32
  module2.exports = {
33
33
  name: "vigile-scan",
34
- version: "2.1.0",
34
+ version: "3.0.0",
35
35
  description: "Security scanner for AI agent tools \u2014 detect tool poisoning, permission abuse, and supply chain attacks in MCP servers and agent skills",
36
36
  main: "dist/index.js",
37
37
  bin: {
@@ -1277,13 +1277,61 @@ var SKILL_EXFILTRATION_PATTERNS = [
1277
1277
  recommendation: "Review why this skill needs access to all environment variables."
1278
1278
  }
1279
1279
  ];
1280
+ var LOCATION_PATTERNS = [
1281
+ {
1282
+ id: "SK-060",
1283
+ category: "location-privacy",
1284
+ severity: "high",
1285
+ title: "Browser geolocation access",
1286
+ pattern: /(?:navigator\s*\.\s*geolocation|getCurrentPosition|watchPosition|GeolocationPosition|geolocation\s*\.\s*(?:get|watch|clear))/i,
1287
+ description: "Skill accesses browser geolocation API, which reveals the user's precise physical location.",
1288
+ recommendation: "Verify this skill genuinely needs location data. Geolocation exposes latitude/longitude \u2014 high privacy risk if exfiltrated."
1289
+ },
1290
+ {
1291
+ id: "SK-061",
1292
+ category: "location-privacy",
1293
+ severity: "high",
1294
+ title: "Mobile/native geolocation library",
1295
+ pattern: /(?:@react-native-community\/geolocation|expo-location|react-native-geolocation|Geolocation\.requestAuthorization|CLLocationManager|LocationManager|FusedLocationProvider|ACCESS_FINE_LOCATION|ACCESS_COARSE_LOCATION|requestLocationPermission)/i,
1296
+ description: "Skill uses a native mobile geolocation library to access device GPS coordinates.",
1297
+ recommendation: "Mobile location APIs provide high-precision GPS data. Ensure this skill has a legitimate need for physical location and does not transmit it externally."
1298
+ },
1299
+ {
1300
+ id: "SK-062",
1301
+ category: "location-privacy",
1302
+ severity: "critical",
1303
+ title: "Location data exfiltration",
1304
+ pattern: /(?:(?:send|post|upload|transmit|exfiltrate|forward|share|log|track|record)\s+(?:the\s+)?(?:user(?:'s)?\s+)?(?:location|coordinates?|gps|lat(?:itude)?|lng|lon(?:gitude)?|geo(?:location)?|position|whereabouts))|(?:(?:location|coordinates?|gps|lat(?:itude)?|lng|lon(?:gitude)?|geo(?:location)?|position)\s+(?:to|via|through|using)\s+(?:https?|api|endpoint|server|webhook|url))/i,
1305
+ description: "Skill instructs the agent to send location data to an external endpoint. This is a location exfiltration pattern.",
1306
+ recommendation: "CRITICAL: Do NOT install. This skill attempts to exfiltrate physical location data \u2014 a severe privacy violation."
1307
+ },
1308
+ {
1309
+ id: "SK-063",
1310
+ category: "location-privacy",
1311
+ severity: "medium",
1312
+ title: "IP-based geolocation lookup",
1313
+ pattern: /(?:ip-api\.com|ipinfo\.io|ipgeolocation|ip2location|geoip|maxmind|freegeoip|geolite|ip\s*(?:to|2)\s*(?:geo|location))|(?:(?:get|fetch|lookup|resolve)\s+(?:the\s+)?(?:user(?:'s)?\s+)?(?:location|city|country|region|timezone)\s+(?:from|via|using)\s+(?:ip|IP))/i,
1314
+ description: "Skill performs IP-based geolocation to approximate the user's physical location without explicit GPS access.",
1315
+ recommendation: "IP geolocation bypasses browser permission prompts. Verify this skill needs approximate location and isn't using it to fingerprint or track users."
1316
+ },
1317
+ {
1318
+ id: "SK-064",
1319
+ category: "location-privacy",
1320
+ severity: "medium",
1321
+ title: "Geofencing or location boundary check",
1322
+ pattern: /(?:geofenc(?:e|ing)|location\s*(?:boundary|fence|perimeter|zone|radius|range)|within\s+(?:\d+\s*)?(?:meters?|miles?|km|kilometers?)\s+of|haversine|vincenty|h3\s*(?:cell|index|resolution|boundary)|(?:enter|exit|cross)(?:ing|ed)?\s+(?:the\s+)?(?:geo)?fence)/i,
1323
+ description: "Skill implements geofencing or location boundary detection, which requires continuous location monitoring.",
1324
+ recommendation: "Geofencing requires persistent location tracking. Review whether the boundary checks are appropriate and data isn't being logged or exfiltrated."
1325
+ }
1326
+ ];
1280
1327
  var ALL_SKILL_PATTERNS = [
1281
1328
  ...INSTRUCTION_INJECTION_PATTERNS,
1282
1329
  ...MALWARE_DELIVERY_PATTERNS,
1283
1330
  ...STEALTH_PATTERNS,
1284
1331
  ...SAFETY_BYPASS_PATTERNS,
1285
1332
  ...PERSISTENCE_PATTERNS,
1286
- ...SKILL_EXFILTRATION_PATTERNS
1333
+ ...SKILL_EXFILTRATION_PATTERNS,
1334
+ ...LOCATION_PATTERNS
1287
1335
  ];
1288
1336
 
1289
1337
  // src/scanner/skill-scanner.ts