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.
Remapping Variable Using Abstract Syntax Tree (AST)
python -m lexz -f test.py -g graph.dot
python -m lexz test.py -g graph.dot
dot -Tsvg output.svg graph.dot
#in single line
python -m lexz -f test.py -g /dev/stdout|dot -Tsvg -o output.svg
class HelloWorld:
def __init__(self) -> None:
try:
self.a = 3
except Exception:
self.b = 3
class HelloWorld2((child:=HelloWorld)):
def __init__(selx) -> None:
selx.a = 3
for i in range(10):
self.for_ = i
@dfunc((decorator:=10))
async def xyz(self, a):
async for i in range(10):
self.tesx = i
async with open("test3.py", "r") as f:
print(f.read())
lambda ho: 123
@(lambda:(call:=dfunc((arg:=2))))()
def FunDec():
data ={'a': (a:=(b:=(c:=3)))}
pass
def dfunc(arg):
def func(f):
def execute(*args, **kwargs):
return f(*args, **kwargs)
return execute
return func
FAQs
Time traveler for obfuscation or another purpose
We found that lexz 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
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.