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.
A library for parsing the property list file format that is used by the TextMate code editor. TextMate uses a format that is extremely close to so called 'old-style' property lists, aka. ASCII property lists, but there are a few small differences.
The library also contains a basic object model for TextMate grammars.
A single function parse
that takes a string and returns an object.
const tmplist = require ('tm-plist')
var sample = `{
key1 = 1;
key2 = 2;
array = (4, :true, 5, 6)
}
`
console.log (tmplist.parse (sample))
The partial grammar below was found in the TextMate source code here. Additional information was found in the TextMate 1 documentation here.
The last however implies that unquoted keys cannot start with leading digits even though this does happen in practice. (For example, capture names in TextMate grammar files are stored as dicts with numeric keys.)
The NeXTSTEP format allowed unquoted strings with characters in the set [a-zA-Z0-9_$+/:.\-]
. This must be different from the TextMate format because TextMate uses :true
and :false
as booleans. This library allows unquoted strings with characters in the set [a-zA-Z0-9_$+/.\-]
.
array: '(' (element ',')* (element)? ')'
dict: '{' (key '=' value ';')* '}'
integer: ('-'|'+')? ('0x'|'0')? [0-9]+
float: '-'? [0-9]* '.' [0-9]+
boolean: :true | :false
string: ["] … ["] | ['] … ['] | [a-zA-Z_-]+
data: <DEADBEEF>
date: @2010-05-10 20:34:12 +0000
MIT. Enjoy!
FAQs
A parser for TextMate property lists
The npm package tm-plist receives a total of 0 weekly downloads. As such, tm-plist popularity was classified as not popular.
We found that tm-plist demonstrated a not healthy version release cadence and project activity because the last version was released 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.