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.
sqon-parser
Advanced tools
Structured Query Object Notation. New Database formate (Readable & Supports Binary, Date & Bigint), (Inbuilt Schema & constraints).
SQON (Structured Query Object Notation) is a structured data format combining schema definitions, validation rules, and records. It supports strict mode, ensuring data consistency by enforcing type restrictions and validation rules.
A SQON file includes:
STRICT=TRUE/FALSE
)@schema
)@validations
)@records
)Each section is marked by specific tags (@schema
, @validations
, and @records
) and closed with @end
.
STRICT=TRUE/FALSE
)The strict mode setting, located at the top of the file, controls whether records must strictly adhere to the schema and validation rules.
Example with Strict Mode Enabled:
STRICT=TRUE
@schema
)Defines fields and data types. When STRICT=TRUE
, fields must have a single, precise data type. If STRICT=FALSE
, fields can accept multiple types (e.g., String | Number
).
@schema
username -> String
age -> Number
createdDate -> Date
preferences -> Object
tags -> StringArray
@end
@validations
)Validation rules ensure data integrity by specifying requirements for fields (e.g., required
, minLength
, isDate
). With STRICT=TRUE
, records that fail validation are rejected.
@validations
username -> required=true, minLength=3
age -> required=true, min=18, max=120
createdDate -> isDate=true
tags -> minLength=1, maxLength=10
@end
@records
)The records section holds actual data entries. Each record begins with a unique document number (#0
, #1
), which allows quick record identification.
@records
#0 -> username("JohnDoe"); age(30); createdDate(1993-07-16T00:00:00Z); preferences{ theme: "dark" }; tags[ _0("friend"); _1("coworker") ];
#1 -> username("JaneSmith"); age(25); createdDate(1998-04-22T00:00:00Z); preferences{}; tags[ _0("family") ];
@end
#0
, #1
, #2
)Each entry begins with a document number, which serves as a unique reference. Advantages include:
_0
, _1
, etc.)Arrays use indexed keys for each element (e.g., _0("value")
, _1("value")
). Benefits include:
STRICT=TRUE
*STRICT=TRUE
@schema
username -> String
age -> Number
birthdate -> Date
isVerified -> Boolean
friends -> StringArray
@end
@validations
username -> required=true, minLength=3
age -> required=true, min=18, max=120
birthdate -> isDate=true
isVerified -> required=true
friends -> minLength=1, maxLength=5
@end
@records
#0 -> username("Alice"); age(30); birthdate(1993-05-20T00:00:00Z); isVerified(TRUE); friends[ _0("Bob"); _1("Charlie") ];
#1 -> username("Bob"); age(35); birthdate(1988-07-22T00:00:00Z); isVerified(FALSE); friends[ _0("Alex"); ];
@end
With STRICT=TRUE
, the format enforces stricter data integrity, providing users with a high degree of reliability and control over data consistency.
_number
notation for arrays adds clarity and structure, making it easy to manage array elements.This format is especially useful in applications where structured data with flexible types, validation, and indexed array elements are needed. SQON’s organized layout and indexing features enhance both readability and data management, making it a powerful choice for structured, validated data storage.
FAQs
Structured Query Object Notation. New Database formate (Readable & Supports Binary, Date & Bigint), (Inbuilt Schema & constraints).
The npm package sqon-parser receives a total of 33 weekly downloads. As such, sqon-parser popularity was classified as not popular.
We found that sqon-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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’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.