1.0.0 • Published 22 days ago

@f1stnpm2/ex-similique-suscipit v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
22 days ago

@f1stnpm2/ex-similique-suscipit

NPM version

ESLint rules for Node Security

This project will help identify potential security hotspots, but finds a lot of false positives which need triage by a human.

Installation

npm install --save-dev @f1stnpm2/ex-similique-suscipit

or

yarn add --dev @f1stnpm2/ex-similique-suscipit

Usage

Flat config (requires eslint >= v8.23.0)

Add the following to your eslint.config.js file:

const pluginSecurity = require('@f1stnpm2/ex-similique-suscipit');

module.exports = [pluginSecurity.configs.recommended];

eslintrc config (deprecated)

Add the following to your .eslintrc file:

module.exports = {
  extends: ['plugin:security/recommended-legacy'],
};

Developer guide

  • Use GitHub pull requests.
  • Conventions:
  • We use our custom ESLint setup.
  • Please implement a test for each new rule and use this command to be sure the new code respects the style guide and the tests keep passing:
npm run-script cont-int

Tests

npm test

Rules

⚠️ Configurations set to warn in.\ ✅ Set in the recommended configuration.

Name                                 Description⚠️
detect-bidi-charactersDetects trojan source attacks that employ unicode bidi attacks to inject malicious code.
detect-buffer-noassertDetects calls to "buffer" with "noAssert" flag set.
detect-child-processDetects instances of "child_process" & non-literal "exec()" calls.
detect-disable-mustache-escapeDetects "object.escapeMarkup = false", which can be used with some template engines to disable escaping of HTML entities.
detect-eval-with-expressionDetects "eval(variable)" which can allow an attacker to run arbitrary code inside your process.
detect-new-bufferDetects instances of new Buffer(argument) where argument is any non-literal value.
detect-no-csrf-before-method-overrideDetects Express "csrf" middleware setup before "method-override" middleware.
detect-non-literal-fs-filenameDetects variable in filename argument of "fs" calls, which might allow an attacker to access anything on your system.
detect-non-literal-regexpDetects "RegExp(variable)", which might allow an attacker to DOS your server with a long-running regular expression.
detect-non-literal-requireDetects "require(variable)", which might allow an attacker to load and run arbitrary code, or access arbitrary files on disk.
detect-object-injectionDetects "variablekey" as a left- or right-hand assignment operand.
detect-possible-timing-attacksDetects insecure comparisons (==, !=, !== and ===), which check input sequentially.
detect-pseudoRandomBytesDetects if "pseudoRandomBytes()" is in use, which might not give you the randomness you need and expect.
detect-unsafe-regexDetects potentially unsafe regular expressions, which may take a very long time to run, blocking the event loop.
fastcopystoragegatewayerror-handlingregular expressiontextfluxastparsingstylesheetreact-hooksdebuggerdependency managerstylingprototypecalltesterassertionrm -frrangeerrorpatchcallbinddirectoryprefixprunemixinsfindLastIndexescapevisualemrcloudsearchfindes2018stdlibgetoptObject.valuesjoiintrinsicwritableansiapolloduplexschemaworkspace:*less mixinselbterminalextracore-jswatcherprotobufsameValueZeroes8browserlistxhrarrayforEachRxmatchslicetoArraywalkingESnextoptimizerfseventsReactiveExtensionswrapkinesisbyteOffsetpersistentshrinkwraplogbufferECMAScript 2020throttleauthschemeformreactl10nutil.inspectes2017ispluginincharacterstreams2deepcopyfindLastnativebusyargparselinklinewrapenderWebSocketfind-upformattinghooksnodewhatwgCSSbluebirdhottouchserializationdynamodbwafvalidationsuperstructloadbalancingformsglacierstringsymlinksfspropertyhardlinksstatelessponyfillweakmapconsoleTypeBoxchannelmonorepoReactiveXES2021regexpmoduleObservablesutilitynodejsprotobyteLengthrestclonees2016URLJSON-SchemastringifiertypedarraysString.prototype.matchAllglobal$.extenditeratenumberflatMapmapreducetrimLeftjapaneseownlesscssslotreadinputsharedlook-up-0yupes6figletargumentprocessvaluessymbolpositivewatchFileqsprogresscloudformationtoSortedchaipromisesrfc4122utilnamesES3randomes2015speclinuxsideECMAScript 2015comparepackage managerECMAScript 7varsjsonpathcachedropes0emojinamesyntaxerrortestingBigInt64ArraygroupByupserializerbrowserslistcoreendpointclientcolourstatusdescriptorpipeiteratorfromInt16ArrayexitrmdirUint16ArraynegativemkdirpfpspreprocessorformatexeccreategenericsstreamscallbackarktypeparentsArray.prototype.flattenidlesetPrototypeOfidentifiersarraybufferjasminevalidSymbolArrayBuffer.prototype.sliceinvariantchromiumBigUint64Arrayless cssvest256colorES2023JSONeslintconfigentriescsssequencergboncejsxcloudtrailES5elasticacheasciisinatrauninstallsettingsmkdirworkflowtypanionproxyurlpreserve-symlinksconcatdependenciesidfastisConcatSpreadablebcryptlengththroatpicomatchURLSearchParamsvariablesFloat64Arraypromiseoptimistroute53momentstructuredClonestylephonecode pointsmruavaObject.isES2017listenerscollectionECMAScript 2019parseassignrouterruntimevalidatePushcolorses7reduxviewoptionmatchesdotenvObject.entriesec2parserless.js_.extendjsdiffcallboundhttptypescriptsignalsweaksetkeyminimalfindupcollection.es6uuidECMAScript 2022flattenapi[[Prototype]]speedRegExp#flagsperformantECMAScript 5toobjectbundlinggradients cssemitlessIteratortslibpropertiesflagfast-copyECMAScript 2016windowspnpm9swfefficientenumerablewritemoveawesomesaucedeep-clonecryptotaskchromeYAMLcurlexpresscolumnss3trimagentRxJSqueueMicrotaskairbnbexit-codeshamcodesindicatorspinnermiddlewarebreakhandlersstyled-componentsWebSocketsprettyawaitiamappextendtrimRighttypedarrayobjectUint8ArrayUint32Arraymochatoolkitamazonopentypedatereuseless compilerutilitiesenvironmentsdeep-copyArray.prototype.filterqueuecompile lessresolvelanguagebundlerstringifyes5sigintwatchsetImmediatesignalomittypeerrorincludesartwatchingmulti-packagebuffersequalcloudwatchshebangeslintdatastructuredeterministicchecktrimEndhigher-orderpathstartercss lesseslintplugina11ykeysECMAScript 2021electroneslint-plugintddnested cssconcatMaparraysglobalsfunction@@toStringTagextensiongetES2016debugnopeObject.assignMicrosoftrequesteventEmitterhttpsbindObservableoutputoffsetconfigmacospyyamlArray.prototype.includestoolsfullwidthbannertypesafeString.prototype.triminterruptsdataiesortedArray.prototype.findLastIndexECMAScript 2018importArray.prototype.containsnegative zeroautoscalingcommandimportexporttostringtagrobustECMAScript 6symbolsreact-hook-formpackage__proto__Object.definePropertyrequireinstallertrimStartassertclassesoperating-systemhookformrm -rfvpcsetshimlastArray.prototype.flatMapdomsomedeepclonemetadatavaluetermeventDispatcherenvironmentimmerargssettertraversegetterconsumeloggingArrayfilterwebcall-boundgraphqldataViewtelephonereadablefulleventsauthenticationtoStringTagMapreact-testing-librarypushwidthgetPrototypeOfnpmhasOwnPropertysnsRFC-6455inspectmodulesmime-dbconcurrencylibphonenumbercss nestingguidES2022command-lineInt8Arraycommanderreduceregexworkerfile systemES2020TypeScriptwaitsharedarraybuffertestArray.prototype.findLast
1.0.0

22 days ago