VHow would you respond to a suspected credential leak?
Mülakat sorusuSiber güvenlik
Güvenlik mülakatçıları iki şeye kulak verir: riski düşünmek için yapılandırılmış bir yöntem ve bunu güvenlik uzmanı olmayan insanlara anlatabilme becerisi. Savunma planı olmayan uzun bir saldırı listesi onları etkilemez; somut bir örnekle kısa ve net bir açıklama etkiler.
Her konuda şu sırayı kullanın: tehdidin ya da kontrolün ne olduğu, nasıl çalıştığı ve gerçek bir sistemde ne yapacağınız. Varsa ödünleşimi (trade-off) ekleyin, çünkü güvenlik her zaman kullanılabilirlik, hız ve maliyetle rekabet eder.
- ✓Kelimeler → ifadeler → cümleler → konuşma
- ✓Yanıtın anlamı
- ✓Dil
Sık sorulan mülakat soruları ve örnek cevaplar
How do you approach threat modelling?
Tehdit modellemeye (threat modelling) nasıl yaklaşırsınız?
Mülakatçı ne duymak ister. Tekrarlanabilir bir yöntem: sistemin diyagramı, güven sınırları (trust boundaries), tehdit kontrol listesi ve her risk için bir karar.
Yüksek sesle çalışmak için İngilizce örnek cevapThreat modelling means thinking like an attacker before the system is built or changed. I start by drawing the system: the components, the data flows and the trust boundaries, for example where data comes from the internet. Then I ask what can go wrong at each point. A simple checklist is STRIDE: spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege. I rank the threats by impact and likelihood, and for each one I decide to fix it, reduce it, accept it or transfer it. The result is a short list of actions for the backlog. It is cheaper to find a design problem on a diagram than in production.
What is the difference between authentication and authorisation?
Kimlik doğrulama (authentication) ile yetkilendirme (authorisation) arasındaki fark nedir?
Mülakatçı ne duymak ister. İki ayrı soru: kimsiniz ve ne yapabilirsiniz. Ayrıca en az ayrıcalık ilkesi ve tipik bir erişim kontrolü hatası.
Yüksek sesle çalışmak için İngilizce örnek cevapAuthentication answers the question: who are you? Authorisation answers the question: what are you allowed to do? They are separate steps. For authentication, I use a proven solution, such as an identity provider with OpenID Connect, and multi-factor authentication for sensitive accounts. I never build my own password system. For authorisation, I check permissions on the server for every request, not only in the user interface. I follow the principle of least privilege: each user, service and token gets only the access that it needs, and nothing more. A typical bug is a user changing an ID in the URL and seeing the data of another person. That is broken authorisation, and I test for it.
Can you explain SQL injection and cross-site scripting, and how to prevent them?
SQL injection ve cross-site scripting'i açıklayabilir misiniz ve bunlar nasıl önlenir?
Mülakatçı ne duymak ister. Her saldırı için net bir mekanizma ve doğru çözüm: yalnızca girdi filtrelemek değil, veri ile kodu birbirinden ayırmak.
Yüksek sesle çalışmak için İngilizce örnek cevapTake SQL injection. The attacker puts SQL code into an input, and if the application builds the query by joining strings, the database runs that code. The fix is to use parameterised queries, so data and commands are always separate. Cross-site scripting, or XSS, is similar: the attacker gets their JavaScript to run in the browser of another user. To prevent it, I encode output for the correct context, avoid inserting raw HTML, and add a content security policy as an extra layer. I also validate input, but I do not rely on it alone, because the real protection is how the data is used. Regular updates and dependency scanning help against known vulnerabilities.
What is the difference between symmetric and asymmetric encryption, and how do you store passwords?
Simetrik ve asimetrik şifreleme arasındaki fark nedir ve parolaları nasıl saklarsınız?
Mülakatçı ne duymak ister. İki tür anahtar, TLS'in bunları nasıl birleştirdiği ve hash'leme ile şifreleme arasındaki fark.
Yüksek sesle çalışmak için İngilizce örnek cevapSymmetric encryption uses one key to encrypt and decrypt, for example AES. It is fast, so it is good for large amounts of data. Asymmetric encryption uses a public key and a private key. It is slower, so it is used to agree on keys and to make digital signatures. TLS combines both: asymmetric cryptography to set up the connection, and symmetric encryption for the traffic. I encrypt data in transit with TLS, and sensitive data at rest. Passwords are different. I never encrypt them. I hash them with a slow algorithm and a unique salt, such as bcrypt, scrypt or Argon2. Keys belong in a secrets manager, not in the code.
What do you do when you suspect a security breach?
Bir güvenlik ihlalinden (breach) şüphelendiğinizde ne yaparsınız?
Mülakatçı ne duymak ister. Olay müdahalesinin aşamaları sırasıyla: doğrula, sınırla (contain), kökünü kazı, toparlan, öğren; ve baştan sona net iletişim.
Yüksek sesle çalışmak için İngilizce örnek cevapFirst, I stay calm and follow the incident plan. I confirm that it is a real incident and decide how serious it is. Then I contain it: isolate the affected systems, disable the compromised accounts and rotate the keys, but I try to keep the evidence, such as logs. Next comes eradication: find the root cause, remove the access of the attacker and fix the vulnerability. Then recovery: restore from clean backups and watch the systems closely. Communication matters during the whole process. The right people must know early, and sometimes the law requires us to tell customers or regulators. Afterwards, we hold a blameless review and improve our process.
Anahtar terimler nasıl telaffuz edilir
- authentication
- o-then-ti-KEY-şın (th: dil dişlerin arasında)
- authorisation
- o-thı-ray-ZEY-şın (th: dil dişlerin arasında)
- vulnerability
- val-nır-ı-BİL-i-ti
- encryption
- en-KRİP-şın
- privilege
- PRİV-ı-lic
- phishing
- Fİ-şing
- cross-site scripting
- kros-sayt SKRİP-ting
Cevap vermek için kullanışlı kalıplar
- Let me think like an attacker for a moment.Bir an için bir saldırgan gibi düşüneyim.
- The first step is to contain the damage.İlk adım, hasarı sınırlamak (contain).
- I would apply the principle of least privilege.En az ayrıcalık ilkesini uygulardım.
- We never trust input from the client.İstemciden gelen girdiye asla güvenmeyiz.
- The risk depends on the impact and the likelihood.Risk, etkiye ve olasılığa bağlıdır.
- I would not build my own cryptography.Kendi kriptografimi yazmazdım.
- Security is always a trade-off with usability.Güvenlik her zaman kullanılabilirlikle bir ödünleşimdir (trade-off).
- As far as I know, the current recommendation is…Bildiğim kadarıyla güncel öneri şu:…
Sık yapılan hatalar
- "authentication" ile "authorisation"ı karıştırmak ya da çok hızlı söylemek. Yavaş söyleyin ve anlamı hazır tutun: ilki kim olduğunuz, ikincisi ne yapabileceğiniz.
- "Encrypt the password" demek. Parolalar şifrelenmez, hash'lenir; çünkü sistemin onları geri okuması gerekmez. "Hash and salt" deyin.
- Savunmasız saldırı sıralamak. Adını andığınız her saldırı için, nasıl önlendiğine ya da tespit edildiğine dair bir cümle ekleyin.
- Bir sistemin "100 percent secure" olduğunu söylemek. Güvenlik riski azaltmaktır; bu yüzden neyi kabul ettiğinizi ve bir sorunu nasıl fark edeceğinizi söyleyin.
- Her saldırgan için Türkçedeki gibi "hacker" demek. Mülakatta "attacker", "threat actor" ve "breach" daha kesindir ve daha profesyonel duyulur.
Sıkça sorulan sorular
OWASP Top 10'u bilmem gerekir mi?
Yaygın web uygulaması risklerinin bu listesinin ana fikirlerini, örneğin injection ve bozuk erişim kontrolünü (broken access control) bilmelisiniz. OWASP listeyi zaman zaman günceller; bu yüzden güncel sürüme bakın. İki üç maddeyi gerçek bir önleme adımıyla açıklamaya hazır olun.
Hiç güvenlik ekibinde çalışmadıysam nasıl cevap veririm?
Çoğu geliştiricinin düşündüğünden fazla güvenlik deneyimi vardır. Gizli bilgilerin (secrets) yönetimi, izinlerin ayarlanması, bağımlılıkların gözden geçirilmesi, bir açığın düzeltilmesi ya da çok faktörlü kimlik doğrulama eklemek hakkında konuşun. Sonucuyla birlikte gerçek bir örnek anlatın.
Gerçek bir olaydan söz etmek sorun olur mu?
Gizli ayrıntılardan kaçınırsanız hayır. Müşterilerin ya da iç sistemlerin adını vermeyin. "A production service" deyin ve ne olduğuna, ne yaptığınıza ve sonrasında neyi değiştirdiğinize odaklanın. Mülakatçılar dürüst derslerden hoşlanır.
Bir cevabı okumak ile onu söylemek aynı şey değildir. Her soruyu yüksek sesle çalışın, ardından kendi cevabınızın anlamını ve dilini karşılaştırın.
SpeakRole’i dene ↗Bu alandaki diğer konular