From 408d6f1f9d66f194364cdf6eddee148ddb4dc1a0 Mon Sep 17 00:00:00 2001 From: halcin Date: Fri, 23 Jun 2023 14:30:46 +0200 Subject: [PATCH] fix: missing suspicious_file in english list and french list (#86) --- index.html | 12 +++++++++++- languages/english.js | 1 + languages/french.js | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 49c54cf..4966620 100644 --- a/index.html +++ b/index.html @@ -844,7 +844,7 @@

NodeSecure - i18n

parsing_error - An error occured when parsing the JavaScript code with meriyah. It mean that the conversion from string to AST as failed. If you encounter such an error, please open an issue here. + An error occured when parsing the JavaScript code with meriyah. It mean that the conversion from string to AST has failed. If you encounter such an error, please open an issue here. @@ -872,6 +872,11 @@

NodeSecure - i18n

An encoded literal has been detected (it can be an hexa value, unicode sequence, base64 string etc) + + suspicious_file + A suspicious file with more than ten encoded-literal in it. + + short_identifiers This mean that all identifiers has an average length below 1.5. Only possible if the file contains more than 5 identifiers. @@ -942,6 +947,11 @@

NodeSecure - i18n

Cela signifie que la somme des scores suspects de tous les littéraux est supérieure à 3. + + suspicious_file + Un fichier suspect contenant plus de dix littéraux encodés. + + obfuscated_code Il y a une très forte probabilité que le code soit obscurci... diff --git a/languages/english.js b/languages/english.js index 51bb86d..0f931dc 100644 --- a/languages/english.js +++ b/languages/english.js @@ -127,6 +127,7 @@ const sast_warnings = { unsafe_stmt: "Usage of dangerous statement like eval() or Function(\"\").", unsafe_assign: "Assignment of a protected global like process or require.", encoded_literal: "An encoded literal has been detected (it can be an hexa value, unicode sequence, base64 string etc)", + suspicious_file: "A suspicious file with more than ten encoded-literal in it.", short_identifiers: "This mean that all identifiers has an average length below 1.5. Only possible if the file contains more than 5 identifiers.", suspicious_literal: "This mean that the sum of suspicious score of all Literals is bigger than 3.", obfuscated_code: "There's a very high probability that the code is obfuscated...", diff --git a/languages/french.js b/languages/french.js index 615d578..6625849 100644 --- a/languages/french.js +++ b/languages/french.js @@ -131,6 +131,7 @@ const sast_warnings = { encoded_literal: "Un code littérale a été découvert (il peut s'agir d'une valeur hexa, d'une séquence unicode, d'une chaîne de caractères base64, etc.)", short_identifiers: "Cela signifie que tous les identifiants ont une longueur moyenne inférieure à 1,5. Seulement possible si le fichier contient plus de 5 identifiants.", suspicious_literal: "Cela signifie que la somme des scores suspects de tous les littéraux est supérieure à 3.", + suspicious_file: "Un fichier suspect contenant plus de dix chaines de caractères encodés", obfuscated_code: "Il y a une très forte probabilité que le code soit obscurci...", weak_crypto: "Le code contient probablement un algorithme de chiffrement faiblement sécurisé (md5, sha1...).", shady_link: "Un Literal (string) contient une URL vers un domaine avec une extension suspecte."