Example malicious packages to test with
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start with the sample malware packages documentation at docs.socket.dev/docs/sample-malware-packages and reproduce the comparison using socket npm install browserlist and sfw after npm cache clean --force. Check how the two commands classify the package and determine whether the issue is behavior or demo coverage. Done means the expected blocking behavior or a documented safe demo package is established.
Written by the indexing model from the issue text.
Description
I was reviewing: https://docs.socket.dev/docs/sample-malware-packages
If for example I try to do
socket npm install browserlist
It successfully avoids installing it.
But sfw will happily install it, on a fresh npm cache (npm cache clean --force).
The docs specify:
Confirmed malware: Packages verified as malicious through human review. Socket Firewall Free will block these packages.
So, is browserlist not considered "confirmed malware"? Is that why it doesn't block it? I think a separate issue might be, ideally it would act the same way as Socket CLI, considering this is supposed to be the successor. I'd want Socket CLI's behavior in this case.
My real question is: is there a "safe" malicious package we can use to demo installing through sfw that is successfully blocked? Obviously I don't want to use a real malicious package (and any known ones would be removed already anyway).
This is for a course demo.
I cannot even demo that sfw helps avoid risky packages given the behavior above. As you can imagine, it doesn't inspire confidence to see that the Firewall doesn't act as strict or prevent risky package installations like the Socket CLI does.
- Dominant language
- No language data
- Stars
- 271
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SocketDev/sfw-free
-
Difficulty 1/5 Under an hour Newbie friendliness 87/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in SocketDev/sfw-free
Similar issues
-
manually bump balena-preload to ^19.0.6Possibly taken @shaunmulligan claimed this today. Open
Difficulty 1/5 1-3 hours Newbie friendliness 66/100
balena-io/balena-cli#3200 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ranxianglei/billion-context#7858 ·
Maintainers usually reply within 1 day
-
Bash init calls `cygpath` unconditionally on Windows, which breaks non-Cygwin shells like `brush`Possibly taken @iliqiliev claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ajeetdsouza/zoxide#1381 ·
Maintainers usually reply within 5 days
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MakazhanAlpamys/Soup#3415 ·
Maintainers usually reply within 1 day