shodan_lookup
Query Shodan to find exposed services, vulnerabilities, and device details for a target IP or domain. Use host lookups or custom queries to identify internet-connected assets and their risks.
Instructions
Query Shodan for exposed services, vulnerabilities, and device information.
Args: target: IP address or domain to look up (for host queries). query_type: Query type — host (single IP lookup), search (Shodan search query). query: Shodan search query string (for search mode, e.g. "apache country:BR"). limit: Maximum number of search results to return.
Returns: Host information, open ports, detected vulnerabilities, and banner data.
Note: - Requires TENGU_SHODAN_API_KEY environment variable or shodan_api_key in tengu.toml. - Passive OSINT — queries Shodan's database, does NOT interact with target directly. - Target must be in tengu.toml [targets].allowed_hosts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | ||
| target | Yes | ||
| query_type | No | host |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||