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.
github.com/speedata/decorate
Go syntax highlighting framework
go get github.com/speedata/decorate
See the application gohigh
for an example: https://github.com/speedata/gohigh
decorate.HighlightFile(inputfile, inputfilter, outputfilter)
where inputfile
is the filename (+ path) to the input file, inputfilter
the name of the input filter (currently only text
and xml
are supported) and outputfilter
is currently either html
or text
.
See the file inputfilter/text/text.go
for a sample input filter (a language lexer) and outputfilter/text/text.go
for a dummy output filter. Just follow the code there and add an import statement in decorate.go
to activate the filter.
Status: pre alpha
Supported/maintained: yes
Contribution welcome: yes (pull requests, issues)
Main page: https://github.com/speedata/decorate
License: MIT
Contact: gundlach@speedata.de
FAQs
Unknown package
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.