Andreas Wolter
  • Consulting & Services
    • SQL Server Security Assessment by Andreas Wolter
    • SQL Server Health Check
    • Performance Analysis
    • SQL Server Discovery
    • Air-Gapped SQL Server
  • My Customers
  • About
    • Conferences
    • Certifications
    • Training
  • Blog
  • Contact
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu

Where are the scripts to the session „SQL Attacked/Hacking SQL Server“ ? ;-)

Where are the scripts to the session „SQL Attacked/Hacking SQL Server“ ? 😉

Subsequent to the lectures from my “Hacking SQL Server” series “Security Session „SQL Attack..ed“ – Attack scenarios on SQL Server (“Hacking SQL Server”)” which I have already given at the SQLSaturdays Rheinland, Istanbul, at the SQLRAlly Amsterdam and at many regional groups of PASS Germany, more often than not the question arises whether I make the presented code available to the public. With Twitter not being that suitable a medium of discussion (greetings to @DirkHondong and @FrankGeisler ;-)), yet the topic deserving some more attention, I will get into the matter in the following.

The background as to why I’mnot making public the scripts developed for this purpose is actually quite simple: in the scripts, I am showing attack variants and techniques, among others, which have not been documented or are not known within the “scene” (?).

And since I am a little familiar with the discretionary SQL injection and “Hacking”/DoS tools in general I would like to avoid giving those parties developing these tools new ideas for bringing servers down. This wouldn’t be of use to anyone (from the SQL Server community) (- except maybe to “contract hackers,” but I’m “afraid” I don’t hold any stocks in there ;-)).

  • By the way, most of the SQL injection variants are very well documented in the internet, and a simple search will spill out a variety of code examples. It will hardly make a difference which template one is using, as one will need to make adaptions anyway. 😉

In contrast to general opinion, I do not believe that everyone needs to be able to carry out all “hacking” techniques by themselves. I think this is often used as a blanket pretext for justifying security-wise questionable actions.

I am of the opinion that it is sufficient to know/have seen where one can be vulnerable, and that it is more important to invest the time into developing skills for protection.

And this is a good prerequisite for “hacking” oneself (and the difference to the so-called “script kiddie”). Only that even more knowledge will be required then.

In principle, however, I am rather observing a lack of knowledge of the correlations in the security architecture of SQL Server on which I am by nature focusing, as well as, of course, the Windows Server beneath it and the domain architecture in general.

To be able to “hack” alone is of no avail. Once one has covered everything known, one can still get to that. If this is necessary, one will end up in the grey area of “penetration testing.”

The actual goal of my lectures/ “shows” (?) is the “awareness/perception,” and the enhancement of sensitivity for the topic of security in the sense of:

“Have I taken all this into consideration?”

“Could I still have gaps and be an easy target without having noticed up to now?”

Not:

“In order to make my SQL Server environment more secure I would like to dabble in ‘hacking.’”

I hope this makes sense to you J

Either way, an open discussion on this topic is absolutely along my lines.



Happy securing


Andreas

PS: For those who already know the basics, but have more complex requirements or critical environments, there are the Master-Classes on Security.

Tags: SQL Injection

Categories: Conferences & Speaking - Security

Share
  • Share on Facebook
  • Share on X
  • Share on LinkedIn
3 replies
  1. Andreas Wolter says:
    27. November 2013 at 20:37

    Hallo Daniel,
    da steht ja extra “so noch nicht dokumentiert oder…” 😉
    Ich habe diesen Sommer (also 2013), als ich diese Varianten entwickelt habe selbstverständlich ausführlich danach gesucht und auch in einigen Gruppen gefragt. Ich habe keinen angetroffen, der die Dinge, von denen ich rede, schon mal gesehen hat.
    Das muss nichts heissen, richtig. Aber groß bekannt wird es kaum sein, wenn es keinem der mir bekannten SQL Server Spezialisten schon so als Angriffsvariante bekannt war.
    Es grüßt,
    Andreas

    PS: Wenn es darauf einen Hinweis gibt, wäre ich sehr interessiert. Die Frage nach einer offiziellen Bezeichnung steht ja noch im Raum und ist nicht geheim. 🙂
    Also ganz konkret: wenn Du etwas weisst, lass es mich wissen. Ich bin für jeden konkreten Hinweis dankbar.

    Reply
  2. daniel says:
    27. November 2013 at 20:21

    hallo Andreas,

    [quote]
    ich zeige darin unter anderem Angriffsvarianten und Techniken, die so noch nicht dokumentiert oder in der „Szene“ bekannt sind.
    [/quote]

    Du glaubst aber nicht wirklich enrsthaft, dass diese nicht in der Szene schon bekannt sind ?

    Reply
  3. Frank Geisler says:
    27. November 2013 at 14:17

    Hallo Andreas!

    Ich sehe das ganz genau so wie Du. Grundsätzlich ist es eine schlechte Idee die Scripte zu veröffentlichen, da man so den “Script-Kiddies” nur noch mehr “Munition” liefert. Ich fand Deinen Vortrag sehr gut und im Endeffekt hast Du gezeigt wie es prinzipiell geht. Jeder der genügend Fachwissen bzgl. SQL Server hat kann mit Deiner Anleitung selbst solche Scripte entwickeln wenn er sie den unbedingt haben muss. Außerdem lernt man beim Selberschreiben von derartigen Scripten natürlich auch viel mehr als wenn man einfach stumpf Deine Scripte nimmt und die dann in die nächste Web-Eingabemaske pastet die einem über den Weg läuft… ;-). Außerdem sollten die Scripte bei gut gesicherten SQL-Servern eh nicht funktionieren. Alles in allem war das gestern Abend ein sehr gelungener Vortrag zu einem spannenden Thema. Noch mal vielen Dank auch auf diesem Wege…

    Viele Grüße

    Frank

    P.S.: das mit Twitter und dem Diskussionsmedium stimmt!

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Security Assessment Community Edition

Learn about my free Community Edition script.

Recent
  • Sample result in SSMS: local NTLM connections over shared memory from SQL01, and NTLM connections over TCP from a reporting server, an ETL server and a workstation
    NTLM Deprecation and SQL Server: How to Find NTLM Connections...18. November 2026 - 17:01in: Security
  • SQL Server Consolidation: $3M+ in Projected Savings and...30. September 2026 - 15:47in: Architecture & High Availability, Security
  • Using a Database Server as a Honeypot for Threat Detect...18. September 2026 - 16:00in: Security
  • Azure Arc for SQL Server: “Least Privilege” Mode Still...8. September 2026 - 15:56in: Security
  • When SIEM Enrichment Becomes False Attribution3. September 2026 - 14:26in: Security
Comments
  • Thanks Scott. Goof feedback. NETSTAT is a useful addition,...21. November 2026 - 15:44 by Andreas Wolter
  • I would go a little deeper with how to troubleshoot SQL...21. November 2026 - 15:15 by Scott O
  • Protecting database data at rest is essential for maintaining...21. October 2026 - 2:23 by Viska
  • Thanks Now Microsoft could document them as well, and put...19. August 2026 - 16:26 by Andreas Wolter
  • List of Action_IDs for Filter https://sqlquantumleap.com/reference/server-audit-filter-values-for-action_id/ Great...18. August 2026 - 0:59 by Peter Dünsch

Articles

Analysis Services Auditing Availability Groups Azure Best Practices Certification Columnstore Consolidation Deadlocks & Blocking Encryption Extended Events Get-SqlSafe In-Memory OLTP Indexing Least Privilege PASS Summit Patching Performance Analysis Permissions Privilege Escalation Reporting Services Security Principles Spatial Data SQLBits SQL Injection SQLSaturday SQL Server 2012 SQL Server 2014 SQL Server 2016 SQL Server 2022 SQL Server 2025 SQL Trace & Profiler sysadmin & Server Roles Threat Detection Vulnerabilities Workshop & PreCon
© 2026 Andreas WolterContactImprintPrivacy PolicyLinkedInRSS
Link to: Comparing Extended Events vs SQL Trace – or why SQL Trace & Profiler are just a thing of the past :-) Link to: Comparing Extended Events vs SQL Trace – or why SQL Trace & Profiler are just a thing of the past :-) Comparing Extended Events vs SQL Trace – or why SQL Trace & Profiler... Link to: Security-Check-Script & Survey: SQL Server Security – Database-Owners, critical Permissions and role membership Link to: Security-Check-Script & Survey: SQL Server Security – Database-Owners, critical Permissions and role membership Security-Check-Script & Survey: SQL Server Security – Database-Owners,...
Scroll to top Scroll to top Scroll to top
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}