
Research
Malicious NuGet Packages Typosquat Nethereum to Exfiltrate Wallet Keys
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
dsl-builder-test
Advanced tools
A library extracted from OpenSearch Dashboard for Query DSL conversion. This package provides core functionality for OpenSearch/Elasticsearch query builder.
npm install dsl-builder
yarn add dsl-builder
import { buildOpenSearchQuery } from 'dsl-builder';
const indexPattern = {
title: 'logs-*',
fields: [
{ name: 'status', type: 'string' },
{ name: 'response_time', type: 'number' },
{ name: '@timestamp', type: 'date' }
]
};
// Convert KQL query to OpenSearch DSL
const dsl = buildOpenSearchQuery(indexPattern, [
{
query: 'status:error AND response_time:>500',
language: 'kuery'
}
]);
console.log(JSON.stringify(dsl, null, 2));
Converts query objects to OpenSearch DSL.
function buildOpenSearchQuery(
indexPattern: IndexPattern,
queries: Query[],
filters: Filter[] = [],
config: QueryState = {}
): OpenSearchQuery
src/
βββ index_patterns/ # Index pattern related functionality
β βββ fields/ # Field types and mapping
β βββ index_patterns/ # Index pattern service
β βββ lib/ # Utility library
β βββ errors/ # Error handling
βββ opensearch_query/ # Query DSL conversion
β βββ kuery/ # KQL parser and converter
β βββ filters/ # Filter processing
β βββ opensearch_query/ # Main query builder
βββ query/ # Query types and interfaces
βββ osd_field_types/ # Field type system
βββ utils/ # Common utilities
# Run tests
npm test
# Test watch mode
npm run test:watch
# TypeScript compilation
npm run build
# Prepare for deployment
npm run prepare
This project was extracted from the src/plugins/data/common/index_patterns
module of OpenSearch Dashboard.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
This library was extracted from the OpenSearch Dashboard project. Thanks to the OpenSearch community.
FAQs
OpenSearch Query Builder - Extract from OpenSearch Dashboards
We found that dsl-builder-test demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checksβbuilt on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.