Video summary

Write Java Code Like a Seasoned Hacker: 2026 Edition by Soroosh Khodami

Main summary

Key takeaways

Technology

Summary

Soroosh Khodami’s talk argues that Java developers need to understand how attackers combine ordinary application weaknesses, exposed infrastructure, and software dependencies—not merely rely on security tools. He says AI is speeding up vulnerability discovery and exploit development, while supply-chain attacks are becoming a major risk. His central advice is to build security into development and operations, prioritize risks based on context, and monitor systems for attacks that prevention misses.

1. Classic vulnerabilities and AI-assisted attacks

  • Live application demonstration: The speaker used a deliberately vulnerable application to show how an exposed Swagger UI and SQL injection could reveal database information. In the demo, a database misconfiguration let the attack progress to the PostgreSQL container. There, he found an administrator token in a connected Redis service and used it to elevate his application access.
  • He describes this progression as lateral movement: a flaw in one application can expose other services and potentially wider infrastructure, including a Kubernetes cluster.
  • AI-assisted testing demonstration: He ran an AI agent in a Docker sandbox against his test application. The agent found issues including insecure direct object references (IDOR) and stored cross-site scripting (XSS), and produced a penetration-test-style report. He cautions that agents can behave unpredictably and should not be granted broad, uncontrolled access.
  • The speaker cites a chart suggesting that, by 2026, exploits may be available before public vulnerability disclosures. His broader point is that AI can reduce the time and effort needed to find and chain weaknesses.

2. OWASP risks and secure-development practices

The talk reviews major OWASP risk categories, including broken access control, authentication failures, security misconfiguration, cryptographic failures, software supply-chain problems, insecure design, and security logging and monitoring failures.

Examples and lessons include:

  • Misconfiguration: Publicly exposing Swagger, artifact repositories, administration consoles, or application actuator endpoints can reveal useful information or create direct attack paths.
  • Cryptography and tokens: JWT contents are generally readable unless separately encrypted; they should not be treated as secret storage. The speaker also warns against weak password hashing, such as MD5.
  • Insecure design and business logic: A system may behave as designed but still be vulnerable to overlooked cases—for example, allowing a recycled phone number to be used to reset an old account.
  • Authorization: IDOR flaws can allow a user to access another person’s records by changing a referenced object or identifier.
  • Logging: Logs should support both troubleshooting and security detection. Teams should consider what events to record, how to correlate them, and where to store them.

He presents DevSecOps and shift-left security as collaborative practices involving developers, operations, security teams, and, where appropriate, UX and design teams. He emphasizes that tools help, but people and processes are central.

3. Development tools and practical guidance

The speaker demonstrates or recommends several ways to catch problems earlier:

  • Secret scanning: gitleaks and trufflehog can be run as pre-commit hooks or in CI to detect credentials and keys before they are committed.
  • Static application security testing (SAST): Tools such as Snyk and Checkmarx, along with IDE inspections, can flag code-level issues such as SQL injection and path traversal.
  • Infrastructure-as-code scanning: Checkov is shown detecting a configuration-policy violation. The broader recommendation is to define and apply infrastructure rules consistently across teams.
  • Dependency scanning and SBOMs: Software composition analysis (SCA) identifies vulnerable dependencies. A software bill of materials (SBOM) records components and versions, and can also include license and vulnerability information.
  • Reachability analysis: A dependency vulnerability does not automatically mean an application is exploitable. Teams should assess whether the vulnerable code path is actually reachable from the application before prioritizing remediation.
  • Dependency monitoring: A clean scan at release time does not guarantee continued safety; new vulnerabilities may be discovered later. The speaker recalls Log4Shell as an example of why organizations need to quickly identify affected applications and owners.
  • Pull-request and pipeline controls: He recommends four-eyes review, secret checks, and protections against untrusted pull requests triggering privileged CI workflows—especially for open-source maintainers.
  • Threat modeling: He introduces STRIDE-style questions about impersonation, tampering, repudiation, information disclosure, and related threats. Design and UX input can help determine which data fields are actually needed and how data can be protected.

4. Monitoring and security posture

Because not every risk can be prevented, the speaker recommends planning for detection and response:

  • Log events such as successful and failed logins, user actions, and source IPs. Use rules to identify patterns such as repeated login failures or access from unexpected locations.
  • A demo uses ElastAlert with Elasticsearch and Kibana to identify repeated login failures and send a Slack alert. He presents this as a relatively simple monitoring option, while noting that complex detection rules should involve security specialists.
  • He describes SIEM products as a more comprehensive—but often expensive—way to collect, correlate, and alert on security data.
  • CNAPP platforms can combine cloud, workload, identity, and exposure information to show attack paths across resources and help prioritize fixes. ASPM tools consolidate application security findings and support prioritization, reporting, and ownership tracking.

5. Software supply-chain security

The second part focuses on dependencies and build artifacts. In a demonstration, the speaker adds an apparently ordinary dependency to a sample project; when the project’s build runs, malicious behavior opens an outbound connection that gives an attacker interactive access. He also demonstrates a similar risk in a Node.js package installation. These are educational demonstrations of supply-chain compromise, not recommendations to run untrusted packages.

Key risks and recommendations:

  • Dependency confusion and counterfeit packages: Attackers may publish a package with a name or version that causes a package manager to select a malicious copy—particularly when projects use loose version ranges or “latest” versions.
  • Indirect dependencies: Even a small application may pull in dozens of packages. The speaker notes that a basic Spring Boot setup can have many transitive dependencies, expanding the attack surface.
  • Pin and review versions: Avoid unbounded or dynamic versions. Use tools such as Renovate or Dependabot to propose updates through pull requests, and consider a cooldown period before adopting newly published versions.
  • Reserve and standardize namespaces: Ensure organization package names and Maven group IDs are tied to domains the organization controls. Enable two-factor authentication for publishing accounts and standardize internal naming conventions.
  • Commit lockfiles: Keep files such as package-lock.json in version control so builds use known dependency versions and integrity information. The talk also mentions lockfile mechanisms in other ecosystems.
  • Enforce repository policy: Maven Enforcer can ban dynamic versions, unwanted dependencies, or unapproved repositories. Gradle supports repository controls, including exclusive repository declarations. The speaker recommends routing dependency downloads through a trusted internal proxy such as Nexus Repository or JFrog Artifactory, with appropriate filtering.
  • Remove unused dependencies: Maven’s dependency analysis can identify declared libraries that the project does not use.
  • Immutability and integrity: Published artifacts should not be overwritten. Checksums and package signatures can help detect unexpected changes.
  • Generate and retain SBOMs: SBOMs can be generated from source, built artifacts, or container images. Combining these views may reveal different components, including operating-system packages in containers. The speaker mentions CycloneDX and SPDX formats.
  • Monitor SBOMs continuously: A stored SBOM can help identify affected applications when a new vulnerability is announced, as well as track licenses and component ownership.
  • Harden container images: Use appropriately hardened base images and avoid running applications as root where possible. The speaker demonstrates that changing to a hardened image can reduce the number of reported vulnerabilities.
  • Sign artifacts: A final demonstration shows that a JAR can be decompiled, modified, and repackaged. Signing artifacts and verifying signatures can expose post-build tampering.

Guides, tutorials, and product demonstrations

This is a technical conference talk rather than a formal product review. It includes hands-on demonstrations and practical guidance on:

  1. Finding and chaining vulnerabilities in a deliberately vulnerable application.
  2. Running an AI pentest agent within a sandbox.
  3. Adding pre-commit secret-scanning hooks.
  4. Using IDE and SAST checks to find code vulnerabilities.
  5. Generating and using SBOMs, and applying dependency reachability analysis.
  6. Setting up basic log-based brute-force detection.
  7. Configuring package-management protections and dependency policies.
  8. Signing and verifying Java artifacts.

The speaker recommends additional learning from Brian Vermeer’s talks on Java deserialization gadgets and LLM poisoning/prompt injection, and from material by Marit van Dijk and Andres on Maven Enforcer.

Main speakers and sources

  • Main speaker: Soroosh Khodami, a solution architect and developer who says he specializes in supply-chain security.
  • Source/event: Devoxx.
  • Referenced sources and contributors: OWASP Top 10; Bruce Schneier (quoted); Brian Vermeer (recommended talks on gadgets and LLM security); Marit van Dijk and Andres (Maven Enforcer guidance); and tools or platforms including Snyk, Checkmarx, JetBrains IDE inspections, Checkov, Renovate, Dependabot, Nexus Repository, JFrog Artifactory, Elasticsearch, Kibana, ElastAlert, Dependency-Track, and Sonatype.

Rate this summary

Your feedback will help improve summaries.

Improve this summary

Reprocess with a stronger model when the summary feels incomplete or inaccurate.

Pro

Translate summary in another language

Pro

Ask questions to this video

Chat for follow-up questions, clarifications, and source-backed answers.

Coming soon

Share this summary

Original video