
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
A tool belt for concise schemas.
concise-yaml)concise-json)concise-pg)concise-sequelize)concise-flow)concise-graphql)concise-diagram)concise-firebase)You will need to install concise and the input/output plugins you need. For example:
$ npm install concise concise-yaml concise-pg
TBW
Here is an example schema written in YAML:
models:
common:
isIncludeOnly: true
fields:
id:
type: uuid
isPrimaryKey: true
notes:
type: string
isLong: true
person:
description: A project member
includes: { common: true }
fields:
name:
description: Name of the user
type: string
validations:
isRequired: true
isUnique: true
surname: { type: string }
aBoolean:
type: boolean
validations:
isRequired: true
defaultValue: false
relations:
project: true
project:
includes: { common: true }
fields:
name: { type: string }
relations:
projectManager:
model: user
validations:
isRequired: true
technicalManager:
model: user
inverse: false
This simple schema already illustrates some of concise's features:
Includes: common fields (and relations) can be extracted from models. Models marked as isIncludeOnly may have special treatment in some plugins, e.g. concise-pg will not generate tables for them, concise-diagram will omit them in diagrams, etc.
Comments: description attributes can be set on models, fields and relations. They are strongly recommended and are taken into account in all built-in plugins: concise-graphql includes them in schema (so they can be shown in the great GraphiQL tool), concise-diagram shows them as tooltips in diagrams, concise-pg generates COMMENT SQL statements for them, etc.
Relations are defined at the model that contains the foreign key (e.g. in a 1:N relation, at the 1 end). In the example above, a person belongs to a project.
Bidirectional relations: relations are bidirectional by default, and the inverse relation (in the previous example, from project to person) is plural by default. The inverse relation can be fully customised and even removed (set to false).
Validation rules can be applied to both model fields and relations.
Check out the full reference (Flow definitions). The root type for user-provided schema is Schema.
Input options:
file? (string): if specified, raw input schema will be read from the specified pathraw? (string): if specified, its value is used as raw input schemafile or raw should be specified for input processorsInput/output.
No specific options.
Input/output.
Output options:
file? (string): if specified, output will be written to the specified pathprettyJson? (boolean = false): prettify JSON outputOutput-only.
Output options:
file? (string): if specified, output will be written to the specified pathschema? (string): PostgreSQL schema; if unspecified, no schema is used
in the SQL definitions (which corresponds to the public schema)Output-only.
Output options:
Sequelize (Object): the Sequelize classsequelize (Object): a Sequelize instanceextensions? (MapOf<ModelName, SequelizeExtensions>): object that
associates a given model (or $all for all models) to a set of
extensions (or customizations). Description to be completed (see
typedefs and tests for the time being)Output-only.
Output options:
file? (string): if specified, output will be written to the specified pathOutput-only.
Output options:
file? (string): if specified, output will be written to the specified pathrelay? (boolean = false): include Node interface
and node root field, define connections, etc.storyboard? (boolean = false): include storyId field
in mutation input types to support end-to-end Storyboard storiesOutput-only.
Output options:
file? (string): if specified, output will be written to the specified pathfilterEdges? ({ from: ModelName, to: ModelName, as: FieldName, isRequired: boolean } => boolean):
return true if a given edge must be shown. Default: all edges are shownedgeLabels? (boolean = true): show edge labelsOutput-only.
Output options:
file? (string): if specified, output will be written to the specified pathCheck out the concise-examples package, as well as the sample schema.
Copyright (c) Guillermo Grau Panea 2017-now
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
A tool belt for concise schemas
The npm package concise receives a total of 10 weekly downloads. As such, concise popularity was classified as not popular.
We found that concise 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.