Security
We write about application security from the point of view of the team that builds the software: the OWASP Top 10, penetration tests, secrets, APIs and the software supply chain. We show how to build controls into everyday work and what to do once an incident has happened.
18 articles · B2Bnetwork team
18 articles
- 01OWASP Top 10 in a development team's daily workThe OWASP Top 10 is a list of the ten most serious risk categories in web applications, which the OWASP Foundation updates every few years. A development team gets the most from it as a shared language: in task descriptions, in the code review checklist, and in tests. The list is not a certification standard or a full test scope, but a minimum to start from. We describe the 2021 edition.6 min
- 02Penetration testing vs. vulnerability scanning: the differencesVulnerability scanning is automated, frequent checking of systems for known weaknesses, such as outdated software versions or misconfiguration. A penetration test is manual work by an engineer who, within an agreed scope, checks whether weaknesses can be chained into a real threat, including in business logic. A scan answers the question “what is out of date”, a test answers “what can happen”. You need both, at different rhythms.6 min
- 03Secrets in applications: from a .env file to a vaultA secret is any piece of data that grants access: a database password, an API key, a token, a certificate's private key. Do not keep it in code or in the repository. A .env file is enough on a developer's laptop, but servers need a secrets vault that encrypts the data, hands it out only to authorized services, logs every read, and makes rotation easier. A secret that has leaked must be revoked, because removing it from git history is not enough.6 min
- 04SAST, DAST and SCA: which security tests to add to CISCA checks dependencies, meaning libraries and images, for known vulnerabilities and licenses. SAST analyzes source code without running it. DAST tests the running application from the outside, like a user. In CI, add SCA and a secret scanner first, because they give the most with the least noise, then SAST on changes in pull requests, and run DAST after deployment to the test environment. Block only new high-severity findings.6 min
- 05OAuth 2.0 and OpenID Connect demystifiedOAuth 2.0 is an authorization protocol: it lets an application obtain limited access to a resource on a user's behalf, without learning the user's password. OpenID Connect adds an identity layer on top, meaning information about who signed in, in the form of an ID Token. For applications with a user, choose the authorization code flow with PKCE; for server-to-server communication, client credentials. The implicit and password flows are discouraged today.6 min
- 06Software supply chain: SBOM and artifact signingThe software supply chain is everything the code passes through on its way to production: dependencies, build tools, the CI pipeline, package and image registries. Protecting it rests on three pillars. An SBOM lists the components an artifact is made of. A signature confirms who built it and that nobody changed it afterward. SLSA provenance describes how and from what code it was built. Rollout starts with an SBOM generated on every build.6 min
- 07Zero trust: where to startZero trust is an approach in which a position on the corporate network grants no trust: every request for access to a resource is checked based on identity, device state, and context, and access covers only what is needed. The model is described in NIST SP 800-207. Rollout starts with identity and an asset inventory, not with buying a product. It is a multi-year program, run in small steps, starting with the most valuable systems.6 min
- 08API security: the most common mistakesThe most common API security mistake is failing to check whether a user has the right to the specific object they point to in a request. The OWASP API Security Top 10 2023 puts it first, followed by authentication flaws, property and function authorization, missing resource limits, and a weak version inventory. The common denominator: the API trusts the client more than it should. Most of these flaws can be caught with ordinary automated tests using a few accounts.6 min
- 09Vulnerability management: priorities, deadlines, reportingVulnerability management is a continuous process: asset inventory, detection, prioritization, remediation on schedule, verification, and reporting. Priority should not come from the CVSS score alone. What also counts is whether the vulnerability is exploited in attacks (the CISA KEV catalog), how likely exploitation is (EPSS), and how important the system is to the company. Remediation deadlines are set by policy, and every exception has an owner and a review date.6 min
- 10Post-quantum cryptography: what the NIST standards changeIn August 2024, NIST published the first three post-quantum cryptography standards: FIPS 203 (ML-KEM, key establishment), FIPS 204 (ML-DSA, digital signatures), and FIPS 205 (SLH-DSA, hash-based signatures). They are meant to replace RSA and elliptic curve cryptography, which a future quantum computer could break. For IT teams this means a cryptography inventory, preparing systems to swap algorithms, and first protecting data that must stay secret for many years.5 min
- 11Threat modeling: STRIDE in a development teamThreat modeling is a structured review of a system's design that asks what can go wrong before the code reaches production. STRIDE, the model described by Microsoft, sorts threats into six categories: spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege. The team draws a data flow diagram, asks questions from all six categories at every process and trust boundary, and records the results in the backlog as tasks with an owner.6 min
- 12Container and Kubernetes security: images, privileges, networkContainer and Kubernetes security rests on four layers: a clean image, a pod with minimal privileges, accounts with narrow RBAC roles, and a network where traffic between pods is blocked by default. You build the image from a small base, scan it in CI and run it as a non-root user. Each namespace gets the “restricted” Pod Security Standards profile and each application its own NetworkPolicy. You compare the cluster configuration against the CIS Kubernetes Benchmark.6 min
- 13SOC and SIEM: how a security operations center worksA SOC (Security Operations Center) is a team with processes and tools that continuously monitors a company's systems, detects attacks, analyzes alerts and triggers incident response. A SIEM (Security Information and Event Management) is the SOC's main tool: it collects logs from servers, applications, the network and the cloud, brings them together in one place and raises alerts based on detection rules. Without well-chosen logs and rules, a SIEM is just an expensive archive, and a SOC without playbooks just reads alerts.5 min
- 14Social engineering and phishing tests: how to check your company's resilienceA social engineering test is a controlled simulation of an attack on a company's people and processes: a fake email, an SMS, a call to the help desk or an attempt to walk into the office. It is run only at the company's request, under a written contract and with management's consent, with an agreed scope and rules. The result shows how many people clicked, but what matters more is how many reported the suspicious message and how fast. The goal is learning and better procedures, not finding someone to blame.6 min
- 15Multi-factor authentication and passkeys: what to implement in your applicationMulti-factor authentication (MFA) requires at least two different factors: something you know, something you have or something you are. The strongest options are passkeys and FIDO2 security keys, because the key works only with the domain it was created for, so a fake site cannot capture it. SMS codes, authenticator app codes and push notifications beat a password alone but do not protect against phishing. In a new application, offer passkeys as the primary method, one backup method and a secure account recovery process.6 min
- 16Security of applications built on language models: the OWASP Top 10 for LLMsThe OWASP Top 10 for LLM Applications is a list of the ten most serious risks in systems built on large language models, maintained by the OWASP GenAI Security Project. Prompt injection is first, followed by sensitive information disclosure and excessive agency. One principle runs through the whole list: the model is not a security boundary. Permissions, authorization and output validation have to be enforced in the code around the model, because instructions in a prompt can be bypassed.6 min
- 17Identity and access management (IAM): roles and access reviewsIdentity and access management (IAM) is the set of processes and tools that decide who has an account in a company's systems, what permissions they hold and when they lose them. The foundations are roles tied to job positions, the principle of least privilege, automatic granting and removal of access when people join, change jobs and leave, and regular access reviews by managers and system owners. Administrator and technical accounts need separate, stricter rules.6 min
- 18Security incident response: a plan for the first 24 hoursIn the first 24 hours of a security incident you need to confirm it is an incident, appoint the person who leads the response, limit the damage by isolating systems and accounts, secure the evidence and assess your reporting obligations. Under NIS2, an early warning about a significant incident goes to the CSIRT within 24 hours, and under the GDPR a personal data breach is reported to the supervisory authority within 72 hours. The plan, roles and contacts have to be ready before the incident, because there is no time to set them up during one.6 min
Didn't find the answer to your question?
Tell us what you're dealing with. An engineer who has worked on a similar system will answer.