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.
@socketsupply/nat-check
Advanced tools
a cli tool to create and test your ability to create p2p connections.
a cli tool to create and test your ability to create p2p connections.
an implementation of the NAT-check tool described in the paper:
"Peer-to-Peer Communication Across Network Address Translators" (Ford 2005)
(see section 6 - 6.1.1)
this module is not intended for actually building a p2p system, but just for testing connections and understanding how the p2p connection process works.
npm install @socketsupply/nat-check -g
NAT Check tests NATs for reliable UDP behavior // /and TCP hole punching: consistent endpoint translation, // and silently dropping unsolicited incoming TCP SYNs
NAT Check is a client program behind the NAT, and 3 servers at different global IP addresses.
To test the NAT’s behavior for UDP, the client sends pings to servers 1 and 2
servers 1 & 2 each reply with the client’s public UDP ip and port.
If the two servers report the same public endpoint for the client, Then the client is on an "easy nat", The NAT preserves the identy of the client's private endpoint, so holepunching should be easy.
If the two responses return different ip addresses it's considered a "hard nat".
Server 2 also forwards a message to server 3 which replies to the client. If the client receives this message, then the NAT does not filter "unsolicited" incoming traffic.
If the client is able to receive the message from the 3rd server then it's got a statically open firewall and so can receive direct connections
If the client has the same port in the responses from 1 and 2 then it's easy nat. if it receives the message from 3 it's semistatic. if 1 and 2 have different ports it's a hard nat.
sends messages to the 3 servers and tells you wether you are on an easy nat, hard nat, or have a static address. will output your nat-type and instructions for how to connect to this peer.
copy the instructions to your friend on another network so they can connect to you
connect to a remote peer. the remote peer must run the same command at about the same time.
make a bdp connection from a hard nat to a peer on an easy nat. the remote peer needs to run the db_easy command.
make a bdp connection from a easy nat to a peer on an hard nat. the remote peer needs to run the db_hard command.
tests how long your nat keeps port mappings alive, using the same servers as the check
command.
used to set up the servers that make check
command work. read section 6 of the paper for a description of how it works.
FAQs
a cli tool to create and test your ability to create p2p connections.
The npm package @socketsupply/nat-check receives a total of 0 weekly downloads. As such, @socketsupply/nat-check popularity was classified as not popular.
We found that @socketsupply/nat-check demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.