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.
@libp2p/tcp
Advanced tools
A TCP transport for libp2p
A libp2p transport based on the TCP networking stack.
import { createLibp2p } from 'libp2p'
import { tcp } from '@libp2p/tcp'
import { multiaddr } from '@multiformats/multiaddr'
const node = await createLibp2p({
transports: [
tcp()
]
})
const ma = multiaddr('/ip4/123.123.123.123/tcp/1234')
// dial a TCP connection, timing out after 10 seconds
const connection = await node.dial(ma, {
signal: AbortSignal.timeout(10_000)
})
// use connection...
$ npm i @libp2p/tcp
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
FAQs
A TCP transport for libp2p
The npm package @libp2p/tcp receives a total of 7,052 weekly downloads. As such, @libp2p/tcp popularity was classified as popular.
We found that @libp2p/tcp demonstrated a healthy version release cadence and project activity because the last version was released less than 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.