
Research
wget to Wipeout: Malicious Go Modules Fetch Destructive Payload
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Nexcsi is a fast and simple CSI decoder for Nexmon_CSI files written in Python.
pip install nexcsi
from nexcsi import decoder
device = "raspberrypi" # nexus5, nexus6p, rtac86u
samples = decoder(device).read_pcap('pcap/output10k.pcap')
print(samples['rssi']) # [-75 -77 -77 ... -77 -76 -76]
print(samples['fctl']) # [128 148 148 ... 148 148 148]
print(samples['csi']) # [[ 19489 0 -19200 -96 -42 ...
# samples is a Numpy Structured Array
print(samples.dtype)
# [
# ('ts_sec', '<u4'), ('ts_usec', '<u4'), ('saddr', '>u4'),
# ('daddr', '>u4'), ('sport', '>u2'), ('dport', '>u2'),
# ('magic', '<u2'), ('rssi', 'i1'), ('fctl', 'u1'),
# ('mac', 'u1', (6,)), ('seq', '<u2'), ('css', '<u2'),
# ('csp', '<u2'), ('cvr', '<u2'), ('csi', '<i2', (512,))
# ]
# Accessing CSI as type complex64
csi = decoder(device).unpack(samples['csi'])
CSI values of some subcarriers contain large and arbitrary values. Removing or zeroing them can make the changes in CSI better visible.
To zero the values of Null and Pilot subcarriers:
csi = decoder(device).unpack(samples['csi'], zero_nulls=True, zero_pilots=True)
Alternatively you can completely delete the columns of those subcarriers. Although I don't recommend this, because it changes the indexes of other subcarriers.
import numpy as np
csi = np.delete(csi, csi.dtype.metadata['nulls'], axis=1)
csi = np.delete(csi, csi.dtype.metadata['pilots'], axis=1)
FAQs
A fast and simple decoder for Nexmon_CSI
We found that nexcsi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.