Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
third-party-resources-checker
Advanced tools
The Third Party Resources Checker is a tool to detect non-w3.org and non-whitelisted resources in a Web page.
This PhantomJS-based tool loads a given URL and logs on the standard output any URL (one per line) the page requests while loading that is not a www.w3.org
nor a whitelisted URL (as defined in the whitelisted_domains
variable).
It is a component of the W3C automated publication workflow, orchestrated by Echidna.
Install the dependencies by running npm install
.
The checker can be run standalone via the command line:
Usage: third-party-resources-checker [options] URI
Options:
-h, --help output usage information
-V, --version output the version number
-w, --whitelist <filename> optional JSON file containing URIs and domains that are deemed OK
Examples:
$ third-party-resources-checker http://page.to.be/checked
$ third-party-resources-checker -w whitelist.json http://page.to.be/checked
The checker can also be run as a module. require('third-party-resources-checker')
exposes a single check
function:
check(uri, [whitelist]);
It returns a Promise
of a tuple (as a JavaScript Array
):
Array
of String
, each of them being an external resourceWhen used standalone, the whitelist must be written in a JSON file. When used as a module, it must be given to the check()
function as a JavaScript object literal. In both cases, its format is the following:
{
"domains": [
"www.foobar.org"
],
"urls": [
"http://example.org/image.jpg"
]
}
FAQs
The Third Party Resources Checker is a tool to detect non-w3.org and non-whitelisted resources in a Web page.
The npm package third-party-resources-checker receives a total of 14 weekly downloads. As such, third-party-resources-checker popularity was classified as not popular.
We found that third-party-resources-checker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.