{"id":25866153,"url":"https://github.com/texasbe2trill/shodanr","last_synced_at":"2026-06-14T16:31:53.471Z","repository":{"id":275660925,"uuid":"926694554","full_name":"texasbe2trill/ShodanR","owner":"texasbe2trill","description":"An interactive visualization of ransomware infections worldwide using data from the Shodan API. Built with R using ggplot2 and plotly, this project maps infected hosts.","archived":false,"fork":false,"pushed_at":"2025-02-11T02:29:55.000Z","size":5952,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T01:58:50.884Z","etag":null,"topics":["cybersecurity","data-science","data-visualization","ggplot2","httr2","internet-of-things","iot","plotly","r","ransomware","shodan","shodan-api","statistics","threat-intelligence","world-map"],"latest_commit_sha":null,"homepage":"https://texasbe2trill.github.io/ShodanR/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/texasbe2trill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-03T17:48:53.000Z","updated_at":"2025-02-11T02:29:58.000Z","dependencies_parsed_at":"2025-03-02T02:30:50.574Z","dependency_job_id":"9b23877a-66f0-47bb-afa8-81bda685dec4","html_url":"https://github.com/texasbe2trill/ShodanR","commit_stats":null,"previous_names":["texasbe2trill/shodanr"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/texasbe2trill/ShodanR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/texasbe2trill%2FShodanR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/texasbe2trill%2FShodanR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/texasbe2trill%2FShodanR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/texasbe2trill%2FShodanR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/texasbe2trill","download_url":"https://codeload.github.com/texasbe2trill/ShodanR/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/texasbe2trill%2FShodanR/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281757006,"owners_count":26556284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cybersecurity","data-science","data-visualization","ggplot2","httr2","internet-of-things","iot","plotly","r","ransomware","shodan","shodan-api","statistics","threat-intelligence","world-map"],"created_at":"2025-03-02T02:21:56.687Z","updated_at":"2025-10-30T06:21:39.328Z","avatar_url":"https://github.com/texasbe2trill.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShodanR\n\n## Overview\n\nThis project analyzes ransomware infections using data retrieved from the **Shodan API**. It visualizes infected hosts on an interactive world map using `ggplot2` and `plotly`.\n\n## Features\n\n-   **Shodan API Integration**: Fetches live data on ransomware-infected hosts.\n-   **Interactive Map**: Uses `ggplot2` and `plotly` for a dynamic geographic display.\n-   **Secure API Key Handling**: Hides API credentials using environment variables.\n\n## Setup Instructions\n\n### 1. Install `renv` (if not already installed)\n\nBefore activating the lock file, ensure you have the `renv` package installed:\n\n``` r\ninstall.packages(\"renv\")\nlibrary(renv) # Loads the renv package\nrenv::restore() # Install exact packages used during development\n```\n\n### 2. Store API Key Securely\n\nAdd your **Shodan API key** to the `.Renviron` file to avoid exposing it in your code:\n\n1\\. Open `.Renviron`: `file.edit(\"~/.Renviron\")`\n\n2\\. Add your API key: `SHODAN_API_KEY=your_api_key_here`\n\n3\\. Save and restart R.\n\n4\\. Access it securely in R: `api_key \u003c- Sys.getenv(\"SHODAN_API_KEY\")`\n\n## Data\n\n### Ransomware Data\n\n`shodan_ransomware.csv` contains data on ransomware-infected devices retrieved from the Shodan API.\n\n### Data Dictionary\n\n| Column Name          | Description                                   |\n|----------------------|-----------------------------------------------|\n| **IP Address**       | The IP address of the device.                 |\n| **Port**             | The port number being used.                   |\n| **Transport**        | The transport protocol used (e.g., TCP, UDP). |\n| **Service**          | The name of the service running on the port.  |\n| **Operating System** | The operating system running on the device.   |\n| **Country**          | The country where the device is located.      |\n| **Country Code**     | The ISO 3166 country code.                    |\n| **City**             | The city where the device is located.         |\n| **Longitude**        | The geographic longitude of the device.       |\n| **Latitude**         | The geographic latitude of the device.        |\n| **Ransom Letter**    | The ransom letter found in the data.          |\n\n## Future Improvements\n\n-   [ ] Automate periodic data fetching for time-series analysis.\n-   [ ] Implement machine learning models to predict ransomware outbreaks.\n-   [ ] Enhance visualization with additional geospatial insights.\n-   [ ] Add more API query examples\n\n## License\n\nThis project is open-source under the **MIT License**.\n\n## Author\n\nChris Campbell - [GitHub](https://github.com/texasbe2trill)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftexasbe2trill%2Fshodanr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftexasbe2trill%2Fshodanr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftexasbe2trill%2Fshodanr/lists"}