Sebastian Leuer
Programming secure C#/.NET Applications: Dos & Don'ts
#1about 5 minutes
AI-generated code can introduce security risks
AI tools can generate insecure code by using deprecated APIs, introducing biases like modulo bias, or having incomplete logic, requiring a manual security review.
#2about 11 minutes
Handling character encoding to prevent spoofing attacks
Visually similar Unicode characters can be used to spoof identities in attacks, which can be mitigated by using ordinal string comparison instead of culture-invariant comparison.
#3about 12 minutes
Mitigating SQL, command, and path traversal injections
Untrusted user input can lead to various injection attacks, which are prevented by using parameterized SQL queries, the ArgumentList property for processes, and robust path validation.
#4about 4 minutes
Avoiding deserialization vulnerabilities in JSON and XML
Insecure default settings in parsers, like TypeNameHandling in Newtonsoft.Json or DTD processing in XML readers, can lead to remote code execution vulnerabilities.
Related jobs
Jobs that call for the skills explored in this talk.
Dennemeyer Group
Hesperange, Luxembourg
Intermediate
Senior
.NET
Structured Query Language (SQL)
aedifion GmbH
Köln, Germany
€30-45K
Intermediate
Network Security
Security Architecture
+1
VECTOR Informatik
Stuttgart, Germany
Senior
Java
IT Security
Matching moments
05:55 MIN
The security risks of AI-generated code and slopsquatting
Slopquatting, API Keys, Fun with Fonts, Recruiters vs AI and more - The Best of LIVE 2025 - Part 2
03:45 MIN
Preventing exposed API keys in AI-assisted development
Slopquatting, API Keys, Fun with Fonts, Recruiters vs AI and more - The Best of LIVE 2025 - Part 2
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
04:09 MIN
The emerging market for fixing AI-generated code
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
14:14 MIN
Scripting presentations and demos in VS Code
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
02:48 MIN
Building trust through honest developer advocacy
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
03:40 MIN
The limitations and risks of vibe coding
Slopquatting, API Keys, Fun with Fonts, Recruiters vs AI and more - The Best of LIVE 2025 - Part 2
03:48 MIN
Automating formal processes risks losing informal human value
What 2025 Taught Us: A Year-End Special with Hung Lee
Featured Partners
Related Videos
Typed Security: Preventing Vulnerabilities By Design
Michael Koppmann
101 Typical Security Pitfalls
Alexander Pirker
How your .NET software supply chain is open to attack : and how to fix it
Andrei Epure
Don't Be A Naive Developer: How To Avoid Basic Cybersecurity Mistakes
Tino Sokic
Software Security 101: Secure Coding Basics
Thomas Konrad
Hacking C# from the inside - how to do anything in NET
Adam Furmanek
Real-World Security for Busy Developers
Kevin Lewis
You click, you lose: a practical look at VSCode's security
Thomas Chauchefoin & Paul Gerste
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.


SE Padersoft GmbH & Co. KG
Paderborn, Germany
Remote
GIT
REST
Blazor
Docker
+3

Prognum Automotive GmbH
Ulm, Germany
Remote
C++



nara GmbH
Berlin, Germany
Senior
.NET
Angular
Unit Testing
Software Architecture

BleTec Software GmbH
Roßdorf, Germany
Remote
API
.NET
Azure
T-SQL
+3

Kontext E
Kontext E
Dresden, Germany
Remote
.NET
ASP.NET
Microsoft SQL Server
