Logo
/
Blog/Large-Scale SQL Injection Campaign Using sqlmap and ghauri
July 8, 20268 min readCyber Threat Intelligence
Share:

Large-Scale SQL Injection Campaign Using sqlmap and ghauri

By Threat Intelligence Unit

Overview

Oasis Security identified AI-assisted SQL injection activity through analysis of server-side artifacts collected from an exposed attack server.

The collected artifacts revealed the use of automated web vulnerability tools, including sqlmap and ghauri, to conduct SQL injection attacks against more than 100 websites across multiple sectors, including healthcare, government, telecommunications, media, and cloud infrastructure.

The analysis also identified evidence that the attacker leveraged Claude Code to refine attack techniques and support telecommunications-focused operations, providing insight into the attacker's tooling, targeting, and operational workflow.


Executive Summary

  • Server-side artifacts revealed automated SQL injection activity targeting more than 100 websites
  • sqlmap and ghauri were used to conduct large-scale SQL injection attacks, with successful exploitation confirmed against multiple targets
  • Targeted organizations included healthcare providers, government networks, telecommunications companies, media organizations, cloud infrastructure, and enterprise services
  • Claude Code was used to support offensive operations through iterative interactions involving attack-related prompts targeting telecommunications providers
  • PDCP credentials and associated OSINT provided additional insight into the operator's external activity

Attacker Infrastructure Overview

Adversary Infrastructure

  • Server IP: 62.171.148.163
  • Country: Germany

The exposed server contained automation tools, attack histories, AI conversation records, and cloud platform credentials that provided visibility into the attacker's operational workflow.


Analysis of Attacks Using Web Vulnerability Tools

The exposed server contained evidence that the attacker conducted automated SQL injection attacks using sqlmap and ghauri.

sqlmap

The sqlmap history directory contained approximately 110 target subdirectories, as shown in the following figure.

Target subdirectories identified in the `sqlmap` history directory

Figure 1. Target subdirectories identified in the sqlmap history directory

Analysis of the corresponding logs confirmed successful SQL injection against approximately 12 websites.

The successfully exploited targets spanned multiple sectors, including:

SectorRepresentative Targets
HealthcareGerman telemedicine platform and regional healthcare system
GovernmentGreek public-sector communications infrastructure
TelecommunicationsFrench telecommunications enterprise network, Slovak telecommunications infrastructure
MediaSwiss radio station website
Financial ServicesCurrency exchange service
Smart HomeAustralian home automation company
Consumer ServicesExtended warranty and repair service platform
Real EstateFrench real estate website

Representative Target 1

  • Target Website : tel[REDACTED].t[REDACTED].net
  • Description: Telemedicine platform operated by a subsidiary of a major German telecommunications provider
`sqlmap` log showing successful SQL injection against `tel[REDACTED].t[REDACTED].net`

Figure 2. sqlmap log showing successful SQL injection against tel[REDACTED].t[REDACTED].net

Representative Target 2

  • Target Website : r[REDACTED].r[REDACTED].ch
  • Description: Swiss radio station website
`sqlmap` log showing successful SQL injection against `r[REDACTED].r[REDACTED].ch`

Figure 3. sqlmap log showing successful SQL injection against r[REDACTED].r[REDACTED].ch


ghauri

The ghauri history directory contained approximately 108 target subdirectories, as shown in the following figure.

Target subdirectories identified in the `ghauri` history directory

Figure 4. Target subdirectories identified in the ghauri history directory

Analysis of the stored logs confirmed successful exploitation against approximately 22 websites.

Representative targets included:

SectorRepresentative Targets
GovernmentBenin government administrative infrastructure, Greek public-sector communications infrastructure
Cloud InfrastructureEuropean public cloud virtual server
TelecommunicationsHungarian telecommunications network, Croatian telecommunications infrastructure, German and Slovak telecommunications providers
MediaSwiss radio station and related web services
Hosting & Data CentersHungarian internet data center, Croatian hosting provider
Internet InfrastructureRomanian internet backbone provider
Enterprise ServicesEuropean vehicle trading platform, clothing distribution management platform
Real EstateFrench and German real estate websites
Community ServicesRussian automobile forum

Representative Target 1

  • Target Website : archives.mar[REDACTED].bj
  • Description: An official administrative domain hosted on Benin's national network infrastructure
`ghauri` log showing successful SQL injection against `archives.mar[REDACTED].bj`

Figure 5. ghauri log showing successful SQL injection against archives.mar[REDACTED].bj

Representative Target 2

  • Target Website : www.mon[REDACTED].com
  • Description: French real estate information website
`ghauri` log showing successful SQL injection against `www.mon[REDACTED].com`

Figure 6. ghauri log showing successful SQL injection against www.mon[REDACTED].com


AI-Assisted Attack Activity

Claude Code Conversation History

Claude Code conversation history showed that the attacker used the AI assistant to conduct offensive activities.

Claude Code conversation history showing AI-assisted offensive operations

Figure 7. Claude Code conversation history showing AI-assisted offensive operations

The prompts focused primarily on attacks against telecommunications providers located in Germany and Hungary.

Conversation history containing attack prompts targeting telecommunications providers

Figure 8. Conversation history containing attack prompts targeting telecommunications providers


Claude Code Paste Cache

Analysis of the Claude Code paste cache revealed additional prompts submitted to Claude Code.

Similar to the conversation history, these prompts instructed Claude Code to perform attacks targeting telecommunications providers.

Claude Code paste cache containing attack prompts

Figure 9. Claude Code paste cache containing attack prompts


Telecommunications Domain List

Analysis of the file 813e7bdc4d0db2e0.txt identified approximately 260 domains associated with telecommunications providers.

Telecommunications domains identified in `813e7bdc4d0db2e0.txt`

Figure 10. Telecommunications domains identified in 813e7bdc4d0db2e0.txt


Operator Attribution

A credentials.yaml file was identified within the .pdcp directory.

The file contains authentication information used for the ProjectDiscovery Cloud Platform (PDCP).

PDCP provides cloud services supporting ProjectDiscovery tools including:

  • Nuclei
  • Subfinder
  • httpx
Authentication information found in `credentials.yaml` file

Figure 11. Authentication information found in credentials.yaml file

Further investigation of the email address contained within the credential file led to the identification of an associated personal website.

Additional OSINT also identified an associated X (formerly Twitter) account that remained active until recently.

The available information indicates that the individual associated with the account participates in cybersecurity-related activities and projects.

Associated operator's personal website

Figure 12. Associated operator's personal website

Associated operator's X account

Figure 13. Associated operator's X account


Conclusion

Analysis of the exposed server revealed a coordinated workflow combining automated SQL injection frameworks with generative AI assistance.

The attacker employed sqlmap and ghauri to conduct large-scale SQL injection campaigns while using Claude Code to generate and refine attack prompts targeting telecommunications providers.

The identified artifacts also contained cloud platform credentials and publicly accessible information associated with the operator, providing additional context beyond the attack infrastructure itself.

This case demonstrates how server-side artifacts can provide valuable intelligence into attacker tooling, targeting priorities, and operational workflows through the combined analysis of automation frameworks, AI-assisted development, and supporting infrastructure.