
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
Encode/decode raw ip packets
npm install ip-packet
var ip = require('ip-packet')
var buf = ip.encode({
version: 4,
protocol: 0,
sourceIp: '127.0.0.1',
destinationIp: '127.0.0.1',
data: new Buffer('some data')
})
console.log(ip.decode(buf)) // prints out the decoded packet
buffer = ip.encode(packet, [buffer], [offset])Encode a packet. A packet should look like this
{
version: 4,
dscp: 0,
ecn: 0,
identification: 0,
flags: 0,
fragmentOffset: 0,
ttl: 0,
protocol: 0,
sourceIp: '127.0.0.1',
destinationIp: '127.0.0.1',
data: <Buffer>
}
Decode a packet. Throws an exception if the packet contains a bad checksum.
length = ip.encodingLength(packet)Returns the byte length of the packet encoded
configure = ip.configure(options)Returns ip-packet configured with options.
Options:
allowNullChecksum. When decoding, ignore checksums set to 0x0000MIT
FAQs
Encode/decode raw ip packets
The npm package ip-packet receives a total of 0 weekly downloads. As such, ip-packet popularity was classified as not popular.
We found that ip-packet 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.