Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/SkillSpector
/ functions
Functions
2,044 in github.com/NVIDIA/SkillSpector
⨍
Functions
2,044
◇
Types & classes
379
↳
Endpoints
141
↓ 3 callers
Function
_passthrough_with_defaults
Pass all findings through with default remediations (fail-closed). Used on LLM failure path: when the LLM call fails, we pass ALL findings th
src/skillspector/nodes/meta_analyzer.py:278
↓ 3 callers
Method
_popen
(code: str)
tests/unit/test_agent_cli.py:608
↓ 3 callers
Function
_rel_name
Best-effort relative name for display in progress lines.
contrib/multilingual/runner.py:787
↓ 3 callers
Method
_remaining_timeout
(deadline: float | None)
contrib/multilingual/api_pool.py:386
↓ 3 callers
Function
_require
Skip the current test unless *cli* is installed AND authenticated.
tests/integration/test_agent_cli_live.py:64
↓ 3 callers
Function
_scan_multi_skill
Scan each detected sub-skill independently and produce a combined report.
src/skillspector/cli.py:361
↓ 3 callers
Function
_scan_state
Build initial graph state from scan CLI args.
src/skillspector/cli.py:119
↓ 3 callers
Function
_skip_without_env
(name: str)
tests/provider/test_provider_endpoint.py:39
↓ 3 callers
Method
_state
(self, findings: list[Finding])
tests/nodes/test_meta_analyzer.py:142
↓ 3 callers
Function
_strip_builtins_prefix
Collapse a ``builtins``-qualified name back to its bare builtin name. ``builtins.exec`` → ``exec`` (and ``builtins.eval``/``compile``/``__import_
src/skillspector/nodes/analyzers/common.py:107
↓ 3 callers
Function
_write_skill
(tmp_path: Path, body: str = "# Safe skill")
tests/unit/test_mcp_server.py:26
↓ 3 callers
Function
add
( rule_id: str, message: str, severity: Severity, patterns: list[tuple[str, float]] )
src/skillspector/nodes/analyzers/static_patterns_ssrf.py:73
↓ 3 callers
Method
ainvoke
(self, prompt: str)
src/skillspector/llm_utils.py:227
↓ 3 callers
Function
build_baseline_dict
Build a baseline mapping that fingerprint-suppresses every given finding.
src/skillspector/suppression.py:249
↓ 3 callers
Function
ctx
(start: int)
src/skillspector/nodes/analyzers/static_patterns_output_handling.py:138
↓ 3 callers
Function
ctx
(start: int)
src/skillspector/nodes/analyzers/static_patterns_memory_poisoning.py:163
↓ 3 callers
Function
ctx
(start: int)
src/skillspector/nodes/analyzers/static_patterns_supply_chain.py:513
↓ 3 callers
Function
ctx
(start: int)
src/skillspector/nodes/analyzers/static_patterns_agent_snooping.py:130
↓ 3 callers
Function
ctx
(start: int)
src/skillspector/nodes/analyzers/static_patterns_system_prompt_leakage.py:162
↓ 3 callers
Function
dump_baseline
Write a baseline mapping to *path* as YAML (``.json`` extension -> JSON).
src/skillspector/suppression.py:269
↓ 3 callers
Method
get_context_length
(self, model: str)
src/skillspector/providers/bedrock/provider.py:135
↓ 3 callers
Method
get_max_output_tokens
(self, model: str)
src/skillspector/providers/bedrock/provider.py:138
↓ 3 callers
Function
loc
(ln: int)
src/skillspector/nodes/analyzers/static_patterns_output_handling.py:135
↓ 3 callers
Function
loc
(ln: int)
src/skillspector/nodes/analyzers/static_patterns_memory_poisoning.py:160
↓ 3 callers
Function
loc
(ln: int)
src/skillspector/nodes/analyzers/static_patterns_supply_chain.py:510
↓ 3 callers
Function
loc
(ln: int)
src/skillspector/nodes/analyzers/static_patterns_agent_snooping.py:127
↓ 3 callers
Function
loc
(ln: int)
src/skillspector/nodes/analyzers/static_patterns_system_prompt_leakage.py:159
↓ 3 callers
Function
raise_no_llm_api_key_configured
Raise the shared no-LLM-credentials error.
src/skillspector/providers/__init__.py:71
↓ 3 callers
Function
resolve_call_name
Extract a dotted call name like ``'os.system'`` from a Call node. When *aliases* (from :func:`build_import_aliases`) is supplied, locally aliased
src/skillspector/nodes/analyzers/common.py:150
↓ 3 callers
Function
resolve_call_name_typed
Like ``resolve_call_name`` but consults *type_map* for instance methods. For ``sock.recv(1024)`` where *type_map* maps ``sock`` → ``socket.socket
src/skillspector/nodes/analyzers/common.py:279
↓ 3 callers
Function
run_gap_fill
Run a single targeted LLM pass covering the 8 gap-fill rules. Convenience wrapper that instantiates :class:`GapFillAnalyzer`, creates batches
contrib/multilingual/gap_fill.py:265
↓ 3 callers
Function
scan_state
Build the initial LangGraph state for a single skill directory.
contrib/multilingual/runner.py:594
↓ 3 callers
Function
set_level
Set the package root logger and its handler level (e.g. for CLI --verbose).
src/skillspector/logging_config.py:64
↓ 3 callers
Function
was_osv_reachable
Return True if the last query_batch() call succeeded. Callers can use this to decide whether to surface a fallback warning when query_batch r
src/skillspector/nodes/analyzers/osv_client.py:317
↓ 2 callers
Function
_build_import_aliases
Map locally imported names to their fully-qualified module paths. ``from pathlib import Path`` → ``{"Path": "pathlib.Path"}`` ``import socket
src/skillspector/nodes/analyzers/common.py:208
↓ 2 callers
Method
_build_llm
Build a fresh :class:`~langchain_openai.ChatOpenAI` for *key*.
contrib/multilingual/api_pool.py:510
↓ 2 callers
Function
_build_trace_config
Build LangSmith trace config for a scan invocation.
src/skillspector/cli.py:343
↓ 2 callers
Method
_capacity_summary
(self)
contrib/multilingual/api_pool.py:376
↓ 2 callers
Function
_cleanup_result
Remove temp dir from graph result if set.
src/skillspector/cli.py:169
↓ 2 callers
Function
_clear_caches
Clear all functools.cache caches across model_info and the providers.
tests/unit/test_model_info.py:44
↓ 2 callers
Function
_configure
()
src/skillspector/logging_config.py:37
↓ 2 callers
Function
_confirm
LLM item confirming a finding, as parse_response would emit it.
tests/nodes/test_meta_analyzer.py:126
↓ 2 callers
Function
_contains_dangerous_source
Walk children to find a nested dangerous call that forms a chain.
src/skillspector/nodes/analyzers/behavioral_ast.py:132
↓ 2 callers
Function
_dirty_finding
()
tests/nodes/test_report_sanitizer.py:27
↓ 2 callers
Function
_emit
( rule_id: str, lineno: int, end_lineno: int | None, msg: str, )
src/skillspector/nodes/analyzers/behavioral_taint_tracking.py:334
↓ 2 callers
Function
_get_parameters_map
Convert parameters list of dicts to a map of lowercase parameter names -> properties.
src/skillspector/nodes/analyzers/mcp_rug_pull.py:91
↓ 2 callers
Function
_handler
(loop, context)
contrib/multilingual/runner.py:283
↓ 2 callers
Function
_has_skill_md
Check if directory contains a SKILL.md or skill.md at root level.
src/skillspector/multi_skill.py:94
↓ 2 callers
Function
_has_wildcard
Return True if any permission value is a wildcard.
src/skillspector/nodes/analyzers/mcp_least_privilege.py:194
↓ 2 callers
Function
_is_chain_sink
True if this call is exec(), eval(), or compile() — the outer dangerous call.
src/skillspector/nodes/analyzers/behavioral_ast.py:126
↓ 2 callers
Function
_is_safe_dockerfile_idiom
Return True for standard Dockerfile cleanup/setup patterns.
src/skillspector/nodes/analyzers/static_patterns_tool_misuse.py:195
↓ 2 callers
Function
_load
Read *yaml_path* and return its ``models`` map (cached). Returns an empty dict if the path is empty, missing, or unreadable — callers fall th
src/skillspector/providers/registry.py:44
↓ 2 callers
Function
_make_finding
(rule_id: str, file: str = "SKILL.md")
tests/nodes/analyzers/test_semantic_security_discovery.py:48
↓ 2 callers
Function
_message_text
Extract provider-normalized text from a LangChain chat response.
src/skillspector/llm_analyzer_base.py:220
↓ 2 callers
Method
_numeric_keywords
(schema: dict)
tests/nodes/test_llm_analyzer_base.py:872
↓ 2 callers
Function
_openai_fallback_provider
Return the standard OpenAI fallback provider.
src/skillspector/providers/__init__.py:156
↓ 2 callers
Function
_parse_manifest
Parse SKILL.md or skill.md YAML frontmatter into a manifest dict. Returns dict with name, description, triggers (list), permissions (list), a
src/skillspector/nodes/build_context.py:170
↓ 2 callers
Function
_pick_rule
Choose the most specific rule ID for a source->sink pair.
src/skillspector/nodes/analyzers/behavioral_taint_tracking.py:199
↓ 2 callers
Function
_put_cache
(key: tuple[str, str | None, str], results: list[VulnResult])
src/skillspector/nodes/analyzers/osv_client.py:92
↓ 2 callers
Function
_read_skill_files
Lightweight file read for language detection and gap-fill. Mirrors the file-walk rules in :func:`skillspector.nodes.build_context._walk_skill
contrib/multilingual/batch_scan.py:92
↓ 2 callers
Function
_resolve_context_length
Return the context window size for *model_label*. Delegates to the configured provider chain; falls back to :data:`DEFAULT_CONTEXT_LENGTH` wi
src/skillspector/model_info.py:35
↓ 2 callers
Function
_resolve_ctor
(call_node: ast.Call)
src/skillspector/nodes/analyzers/common.py:250
↓ 2 callers
Function
_resolve_path
Return the user override path if set, otherwise *default_yaml_path*.
src/skillspector/providers/registry.py:62
↓ 2 callers
Function
_restore_patches
Restore all original class methods / functions (nesting-aware). Only actually restores when the outermost context manager exits (_patches_dep
contrib/multilingual/runner.py:511
↓ 2 callers
Function
_result_body
(result: dict)
src/skillspector/cli.py:142
↓ 2 callers
Function
_rewrite_proxy_request
Build a proxy-compatible request from an Anthropic SDK request.
src/skillspector/providers/anthropic_proxy/provider.py:68
↓ 2 callers
Function
_rule_ids
(findings: list)
tests/nodes/analyzers/test_behavioral_taint_tracking.py:32
↓ 2 callers
Function
_sanitize_finding
Return a copy of *finding* with control/ANSI bytes stripped from text fields.
src/skillspector/nodes/report.py:99
↓ 2 callers
Function
_severity_to_sarif_level
Map Finding.severity to SARIF result level.
src/skillspector/nodes/report.py:104
↓ 2 callers
Method
_wrap_single_file
Wrap a single file in a temporary directory for consistent handling.
src/skillspector/input_handler.py:268
↓ 2 callers
Function
build_import_aliases
Map locally bound names to their fully-qualified import paths. Public entry point around the import scan already used by :func:`build_type_map`.
src/skillspector/nodes/analyzers/common.py:229
↓ 2 callers
Function
clear_cache
Clear the in-memory vulnerability cache.
src/skillspector/nodes/analyzers/osv_client.py:96
↓ 2 callers
Method
close
(self)
src/skillspector/providers/anthropic_proxy/provider.py:116
↓ 2 callers
Method
complete
( self, prompt: str, *, model: str, max_output_tokens: int, )
src/skillspector/providers/base.py:104
↓ 2 callers
Function
ctx
(start: int)
src/skillspector/nodes/analyzers/static_patterns_rogue_agent.py:151
↓ 2 callers
Function
find_binary
Return the absolute path of *name* on PATH, or ``None`` if absent.
src/skillspector/providers/_agent_cli.py:133
↓ 2 callers
Function
get_active_provider
Return the active provider (alias for :func:`get_metadata_provider`). Preferred over :func:`get_metadata_provider` when callers also need to
src/skillspector/providers/__init__.py:136
↓ 2 callers
Function
get_context_from_lines
Extract surrounding lines given pre-split *lines* and a 1-based *lineno*.
src/skillspector/nodes/analyzers/common.py:80
↓ 2 callers
Method
get_context_length
(self, model: str)
src/skillspector/providers/anthropic_proxy/provider.py:244
↓ 2 callers
Method
get_context_length
(self, model: str)
src/skillspector/providers/anthropic/provider.py:79
↓ 2 callers
Method
get_context_length
Look up *model*'s context window in the bundled ``model_registry.yaml``.
src/skillspector/providers/nv_build/provider.py:71
↓ 2 callers
Function
get_explanation
Get default explanation for a pattern ID.
src/skillspector/nodes/analyzers/pattern_defaults.py:393
↓ 2 callers
Method
get_max_output_tokens
(self, model: str)
src/skillspector/providers/anthropic_proxy/provider.py:247
↓ 2 callers
Method
get_max_output_tokens
Look up *model*'s max-output cap in the bundled ``model_registry.yaml``.
src/skillspector/providers/nv_build/provider.py:75
↓ 2 callers
Function
get_source_segment
Extract the source text for a given line range, truncated to 200 chars.
src/skillspector/nodes/analyzers/common.py:311
↓ 2 callers
Function
get_spec
Return the :class:`CliSpec` for *name*, or raise for an unknown CLI.
src/skillspector/providers/_agent_cli.py:578
↓ 2 callers
Method
invoke
Synchronous invoke with automatic key switching on rate-limit.
contrib/multilingual/api_pool.py:433
↓ 2 callers
Function
loc
(ln: int)
src/skillspector/nodes/analyzers/static_patterns_rogue_agent.py:148
↓ 2 callers
Function
loc
(ln: int)
src/skillspector/nodes/analyzers/static_patterns_harmful_content.py:89
↓ 2 callers
Method
parse_response
Convert the validated Pydantic response to dicts for ``apply_filter``.
src/skillspector/nodes/meta_analyzer.py:341
↓ 2 callers
Function
parts
(v: str)
src/skillspector/nodes/analyzers/static_patterns_supply_chain.py:492
↓ 2 callers
Function
redactSecrets
(value: string)
extensions/skillspector.ts:39
↓ 2 callers
Function
resolve_chat_model_credentials
Return credentials used for chat model construction, including fallback.
src/skillspector/providers/__init__.py:163
↓ 2 callers
Method
resolve_credentials
Return ``(api_key, base_url)`` from ``OPENAI_API_KEY`` / ``OPENAI_BASE_URL``.
src/skillspector/providers/openai/provider.py:52
↓ 2 callers
Function
resolve_dynamic_import_call
Resolve ``importlib.import_module('mod').attr(...)`` to the dotted sink ``'mod.attr'``. Bridges the dynamic-import evasion that mirrors ``__impor
src/skillspector/nodes/analyzers/common.py:186
↓ 2 callers
Method
to_finding
Convert to a :class:`Finding` for the graph state.
src/skillspector/llm_analyzer_base.py:96
↓ 2 callers
Function
truncateText
(value: string, maxChars = 12000)
extensions/skillspector.ts:47
↓ 1 callers
Method
__init__
( self, endpoint_url: str, bearer_token: str, *, verify: bool | str =
src/skillspector/providers/anthropic_proxy/provider.py:97
↓ 1 callers
Method
_ainvoke_with_retry
Async retry loop — non-blocking acquire first, block only if full.
contrib/multilingual/api_pool.py:475
↓ 1 callers
Function
_analyze_dependencies
Run SC4/SC5/SC6 checks on dependency files.
src/skillspector/nodes/analyzers/static_patterns_supply_chain.py:754
← previous
next →
201–300 of 2,044, ranked by callers