Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@open-truss/open-truss
Advanced tools
pronounced: yoo-kee
It is a query client and client builder that can be used to wrap any data source client and present a unified query interface.
These examples are not yet implemented, but are the goal of this project. See the example folder for an example implementation.
import createClient from 'path/to/csv-client-uqi'
const client = await createClient({ path: 'path/to/folder' })
const queryIterator = await client.query('SELECT first_name FROM users.csv')
for await (const { row, metadata } of queryIterator) {
console.log({ metadata })
metadata.columns.forEach((column, i) => {
console.log({ [column.name]: row[i] })
})
}
await client.teardown()
import createClient from 'path/to/json-client-uqi'
const client = await createClient({ path: 'path/to/users.json', queryLanguage: 'jq' })
const queryIterator = await client.query('.[] | select(.first_name | startswith("J")) | .first_name')
for await (const { row, metadata } of queryIterator) {
console.log({ metadata })
metadata.columns.forEach((column, i) => {
console.log({ [column.name]: row[i] })
})
}
await client.teardown()
import createClient from 'path/to/mysql-client-uqi'
const client = await createClient({
hostname: process.env.MYSQL_HOSTNAME,
username: process.env.MYSQL_USERNAME,
password: process.env.MYSQL_PASSWORD,
database: process.env.MYSQL_DATABASE,
})
const queryIterator = await client.query('SELECT first_name FROM users')
for await (const { row, metadata } of queryIterator) {
console.log({ metadata })
metadata.columns.forEach((column, i) => {
console.log({ [column.name]: row[i] })
})
}
await client.teardown()
import createClient from 'path/to/trino-client-uqi'
const client = await createClient({
server: process.env.TRINO_URI,
auth: new BasicAuth(process.env.TRINO_USER_IDENTIFIER, ),
source: 'acme/production',
})
const queryIterator = await client.query('SELECT first_name FROM acme.production.users')
for await (const { row, metadata } of queryIterator) {
console.log({ metadata })
metadata.columns.forEach((column, i) => {
console.log({ [column.name]: row[i] })
})
}
await client.teardown()
import createClient from 'path/to/kusto-client-uqi'
const client = await createClient({
hostname: process.env.KUSTO_HOSTNAME,
username: process.env.KUSTO_USERNAME,
password: process.env.KUSTO_PASSWORD,
})
const queryIterator = await client.query('acme.production.users | project first_name')
for await (const { row, metadata } of queryIterator) {
console.log({ metadata })
metadata.columns.forEach((column, i) => {
console.log({ [column.name]: row[i] })
})
}
await client.teardown()
import createClient from 'path/to/rest-client-uqi'
const client = await createClient({
url: 'http://localhost:3000',
})
const queryIterator = await client.query('GET /users')
for await (const { row, metadata } of queryIterator) {
console.log({ metadata })
metadata.columns.forEach((column, i) => {
console.log({ [column.name]: row[i] })
})
}
await client.teardown()
FAQs
Framework for building internal tools
The npm package @open-truss/open-truss receives a total of 3,749 weekly downloads. As such, @open-truss/open-truss popularity was classified as popular.
We found that @open-truss/open-truss demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.