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.
github.com/guillaumerose/sitemap-generator
Please install go and run the following command:
make build
This will output the sitemap-generator
binary in bin/
Standalone crawler:
$ ./bin/sitemap-generator -h
Usage of ./bin/sitemap-generator:
-d int
maximum depth to crawl (-1 is unlimited depth) (default 5)
-p int
maximum number of concurrent requests (default 2)
$ ./bin/sitemap-generator -d 2 -p 2 https://www.redhat.com
INFO[0000] #0 Visiting /
INFO[0000] #2 Visiting /en
INFO[0000] #1 Visiting /en/search
...
INFO[0003] Found 145 URLs
- /
- /en
- /about
- /all-policies-guidelines
- /around-the-world
- /company
- /development-model
- /feedback
...
Standalone HTTP client/server:
$ ./bin/server
INFO[0000] Listening on :8080
$ ./bin/client -h
Usage of ./bin/client:
-d int
maximum depth to crawl (-1 is unlimited depth) (default 5)
-p int
maximum number of concurrent requests (default 2)
-s string
crawler URL (default "http://127.0.0.1:8080")
$ ./bin/client https://kompose.io
INFO[0000] Crawling https://kompose.io (parallelism: 10, maxDepth: 5)
INFO[0000] 7 URLs found
- /
- /architecture
- /conversion
- /docs
- /conversion.md
- /maven-example.md
- /getting-started
- /installation
- /integrations
- /user-guide
HTTP client/server with Docker:
$ docker run -d -p 8080:8080 -t guillaumerose/sitemap-generator-server:v1.1
$ docker run -t guillaumerose/sitemap-generator-client:v1.1 -s http://server_ip:8080 https://kompose.io
INFO[0000] Crawling https://kompose.io (parallelism: 2, maxDepth: 5)
INFO[0000] 4 URLs found
INFO[0001] Finished! 9 URLs found
- /
- /architecture
- /conversion
- /docs
...
Using Kubernetes:
$ kubectl apply -f config/deployment.yaml
$ kubectl apply -f config/service.yaml
$ kubectl get all
NAME READY STATUS RESTARTS AGE
pod/sitemap-generator-66b7488f6f-rzlg2 1/1 Running 0 4m11s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 6m9s
service/sitemap-generator LoadBalancer 10.110.229.220 localhost 8080:30463/TCP 4m1s
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/sitemap-generator 1/1 1 1 4m11s
NAME DESIRED CURRENT READY AGE
replicaset.apps/sitemap-generator-66b7488f6f 1 1 1 4m11s
POST /crawls
{
"spec": {
"url": "https:/kompose.io",
"max_depth": 3,
"parallelism": 2
}
}
{
"id": "1",
"spec": {
"url": "https://kompose.io",
"max_depth": 3,
"parallelism": 2
},
"status": {
"done": false,
"queue_size": 0,
"size": 0
}
}
GET /crawls/1
{
"id": "1",
"spec": {
"url": "https://kompose.io",
"max_depth": 3,
"parallelism": 2
},
"status": {
"done": true,
"queue_size": 0,
"size": 9
}
}
Links are sorted.
GET /crawls/1/links
[
"/",
"/architecture",
"/conversion",
"/docs/conversion.md",
"/docs/maven-example.md",
"/getting-started",
"/installation",
"/integrations",
"/user-guide"
]
FAQs
Unknown package
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.