Skip to content

NPM Access Token (fine-grained)

ID: npm-accesstoken

Severity: info

Author: DhiyaneshDK

Tags: keys,file,npm,token

id: npm-accesstoken
info:
name: NPM Access Token (fine-grained)
author: DhiyaneshDK
severity: info
reference:
- https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/npm.yml
- https://docs.npmjs.com/about-access-tokens
- https://github.com/github/roadmap/issues/557
- https://github.blog/changelog/2022-12-06-limit-scope-of-npm-tokens-with-the-new-granular-access-tokens/
metadata:
verified: true
tags: keys,file,npm,token
file:
- extensions:
- all
extractors:
- type: regex
part: body
regex:
- "\b(npm_[A-Za-z0-9]{36})\b"
# digest: 4a0a00473045022078242e047d2c23d3b3899b75f6c8ca60960a3c36373beef4fd8d485e0d6a28dc02210082da77f367a30c180db0da32aca981a2b8e72801d8d65b25083f799bed29a773:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "file/keys/npm-accesstoken.yaml"

View on Github