Ömer Faruk YILDIRIM
insights

cyber-security

How Would I Break This? A Developer's Cybersecurity Mindset

A developer’s take on the security mindset: why “does it work?” isn’t enough, and what changes when you start asking “how would I break this?

7 min read

Before malicious people started attacking my servers, my code had only one test: does it work? I followed the steps in the documentation, got the system running, and closed the ticket once the tests went green. I looked at what the code did, not at what it could be made to do.

Today, writing the same code, I ask a different question: how would I break this? What else could this input be? If someone with bad intentions hit this endpoint instead of me, what would they try? What does this package assume, and when does that assumption fall apart?

I used to look at a system and see a workflow: a request comes in, gets processed, a response goes out. Now I look at the same system and see an attack surface: where is the request coming from, who is sending it, what could be inside it, how far does that data travel, and who trusts it along the way? In short: where, and how, can this system break? Documentation tells you how a system works; no documentation tells you how it breaks. You have to ask that yourself.

The difference isn’t a tool or a certification; it’s a mindset. This post is about how that mindset formed, where it saved me at work and in everyday life, and what it has cost me.

It all started with an attack

Around 2014, the Windows Server hosting my game server was under constant attack. They probed the website for vulnerabilities, and more often than not they got in through the game server itself. Until then, cybersecurity had been something I followed with distant interest; in those days it became my server and my problem. I installed BackTrack (today’s Kali Linux) and tried to understand one thing: how are these people getting in?

I didn’t know the literature. I’d never heard of Red Team or Blue Team. I poked at the tools in BackTrack, bought books, watched videos, read blog posts. Then I started running automated pentest tools against software I had written myself. For the first time, I saw my own code through someone else’s eyes.

In 2019 I tried to turn that curiosity into a career, and I was accepted into the academy of a large cybersecurity firm. I thought I had an edge: after years of building software, I wouldn’t be a pentester who just runs tools. Because I knew how systems were built, I’d be able to sense where they would break.

In the end, I found myself back as a software developer. But the person who walked into that academy wasn’t the one who walked out. My career didn’t change; my question did.

Here are two stories where that question saved me. One at a company, one in a cafe in Manila.

At the company: the field everyone thought was validated

At one company, we were building on a microservice architecture. Every project used a shared validation package: input went through it, passed the rules, and came out clean. At least, that’s what everyone believed.

One day, while working on a service, the question came up: can I get around this rule set? As a regular developer, my job was done; the code worked. But I couldn’t let it go without sending a few unusual requests through the REST API. I did this locally, of course, without touching the live system.

The system accepted data it should have rejected.

It was an edge case; the condition didn’t occur on every request. But the rarity wasn’t the real problem. The real problem was that fields developers believed were validated weren’t actually being validated. Everyone who trusted the shared package was unknowingly leaving the same door open, not in one service, but in every project that used it.

I took the initiative and fixed the hole in the main package. Then I sent the problem and the fix to the CTO along with my PR: “There’s a vulnerability here, it’s fixed in this version, and every project using this package needs to upgrade.”

No elaborate tooling was needed: no scanners, no exploits. Just a few unusual requests and a developer who wasn’t satisfied with “it works.”

In Manila: the Wi-Fi that wasn’t Starbucks

In 2025, I was temporarily staying in an unfamiliar part of Manila, the capital of the Philippines. I had five or six hours before my shift and a few tasks to knock out. I found the nearest Starbucks on Google Maps and sat down. The plan was simple: coffee, laptop, two hours of work.

The plan fell apart inside the cafe. My 4G connection, which had worked fine all the way there, dropped to EDGE the moment I stepped in. At the gas station across the street, the connection was normal; in the cafe, it wasn’t.

I’d read about mobile signal jamming and rogue wireless networks before, so the drop made me cautious. I couldn’t tell whether it was ordinary poor coverage or something more deliberate. And if it was deliberate, one possible motive would be to push people off mobile data and onto Wi-Fi.

So I opened the Wi-Fi list, something I normally don’t even do. I don’t use public networks; I tether my laptop to my phone, and if I have no choice, I always connect through a VPN. But this time I wasn’t looking to connect; I was trying to understand what I was dealing with. There was a network called “Start Box Customer”; at a careless glance, it read like “Starbucks Customer.” I tried connecting from my phone (I never opened my laptop) and was greeted by a login page: first hour free, then charged per GB, enter your credit card details to pay.

A Starbucks asking for a credit card for customer Wi-Fi is a warning sign on its own. Next to a mobile signal that had mysteriously died at the door, it was enough reason to pause.

I couldn’t prove the network was malicious. I still can’t. But not being able to prove a threat doesn’t mean you have to take the risk. That day I had neither mobile data to tether nor a network I could trust, even with a VPN. So I made my decision: I gave up on the tasks.

Before I’d even left, a second oddity arrived. A stranger walked up to my table, left a brochure without a word, and walked away. A few minutes later he came back: “Would you like to invest?” I chatted politely and declined his invitation to visit his office. Same place, same hour, two separate “offers” aimed at foreigners: one on the screen, one at the table. They may have been unrelated, but I couldn’t shake the feeling that the cafe was a hunting ground. Social engineering doesn’t always arrive by email; sometimes it arrives as a brochure.

I left the cafe. The signal came back.

It was a strange day. If I didn’t work in tech, I would most likely have entered my card and gotten on with my work.

Maybe everything I experienced in that cafe was coincidence: the signal really was bad, the network belonged to a clumsy business, and the man with the brochure was just an ordinary salesman. I’ll never know. I’d never been through anything like it, and that day I didn’t need to prove anything; I needed to stay safe. Maybe if I had gone to that office, I’d be writing the rest of this story from somewhere very different.

The cost

To be honest, this mindset comes with a price: you can become obsessive.

I haven’t found a formula for dealing with that. The only thing I’ve learned is to pay attention to when and to whom I ask the question, rather than to stop asking it. Over time, I also learned to say “now’s not the time.”

I’ve also learned to tell this mindset apart from paranoia. Paranoia says: something bad is definitely going on here. The security mindset asks: what’s the risk here, how could I check it, and how cheaply can I avoid it? The first jumps to a conclusion; the second forms a hypothesis, tests it when it can, and simply steps around the risk when it can’t. In Manila I never decided I was under attack. I only decided my card wasn’t worth the bet.

But this question isn’t only about security. When you ask “how would I break this?”, you’re forced to actually understand the system rather than memorize it: where data comes in, what assumptions it rests on, which part trusts which. That awareness taught me to think deeply about systems; the same muscle works in architecture discussions, while debugging, and when reading a new codebase. So yes, there’s a price, but what I got in return isn’t only security.

For anyone who wants to build this mindset

  1. Ask “how would I break this?” at least once per PR. Validation, authorization, and file uploads are the most rewarding places to start.
  2. Be extra skeptical of shared packages. A hole in the place everyone trusts is everyone’s hole.
  3. Send unexpected input. Empty, too long, wrong type, deeply nested. It’s one of the simplest ways to test the “it’s validated” assumption.
  4. Keep an eye on your dependencies. Turn on automated alerts (Dependabot or your ecosystem’s audit command) and check CVE records and Exploit-DB when something you use makes the news.
  5. Follow the field a little. Subscribe to one security newsletter, such as SANS NewsBites, and skim it weekly.
  6. Practice somewhere safe. PortSwigger’s Web Security Academy and OWASP Juice Shop let you try real attacks legally, on systems built to be broken.
  7. Ask the same question offline. When something feels off, pause and ask: how could someone use this against me?

Final word

“Does it work?” is a good question. But on its own, it isn’t enough.

Whenever security comes up, I tell my friends the same thing: “Be sure of the data you let in and the data you let out.”