<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jesse Ochoi</title>
    <description>The latest articles on DEV Community by Jesse Ochoi (@jesse_ochoi).</description>
    <link>https://dev.to/jesse_ochoi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4229329%2F7314358b-89c8-4b50-bbfe-f388a04f3fd5.jpg</url>
      <title>DEV Community: Jesse Ochoi</title>
      <link>https://dev.to/jesse_ochoi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jesse_ochoi"/>
    <language>en</language>
    <item>
      <title>Learning Network Traffic Analysis with Wireshark: My First Practical Investigation</title>
      <dc:creator>Jesse Ochoi</dc:creator>
      <pubDate>Fri, 06 Nov 2026 12:01:22 +0000</pubDate>
      <link>https://dev.to/jesse_ochoi/learning-network-traffic-analysis-with-wireshark-my-first-practical-investigation-55g9</link>
      <guid>https://dev.to/jesse_ochoi/learning-network-traffic-analysis-with-wireshark-my-first-practical-investigation-55g9</guid>
      <description>&lt;p&gt;&lt;strong&gt;A hands-on networking exercise exploring DNS, TLS, TCP, IP addressing and network conversations.&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
Understanding how devices communicate across a network is an important skill in networking and cybersecurity.&lt;br&gt;
For my second practical technical challenge, I installed Wireshark, an open-source network protocol analyzer, and used it to inspect traffic generated by my own computer over Wi-Fi.&lt;br&gt;
The objective was to move beyond networking theory and understand what happens when devices communicate.&lt;br&gt;
This was a learning exercise involving ordinary network activity, not an investigation of a confirmed cyberattack.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lab environment&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Component Details&lt;/strong&gt;&lt;br&gt;
Operating system    Windows 11&lt;br&gt;
Tool    Wireshark&lt;br&gt;
Network interface   Wi-Fi&lt;br&gt;
Capture duration    Approximately 30 seconds&lt;br&gt;
Initial packets captured    145&lt;br&gt;
I selected my active Wi-Fi interface and started a live packet capture.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Understanding DNS traffic&lt;/strong&gt;&lt;br&gt;
I began by applying the Wireshark display filter:&lt;br&gt;
dns&lt;br&gt;
The filter returned two packets representing a DNS query and response.&lt;br&gt;
The query contained:&lt;br&gt;
• A domain name being requested.&lt;br&gt;
• Record type A.&lt;br&gt;
• DNS class IN.&lt;br&gt;
The response returned two IPv4 addresses.&lt;br&gt;
This demonstrated how DNS translates domain names into IP addresses that devices can use to communicate.&lt;br&gt;
&lt;strong&gt;What I learned:&lt;/strong&gt; DNS analysis can help an analyst understand which domains a device attempts to resolve and correlate those domains with returned IP addresses.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Examining TLS traffic&lt;/strong&gt;&lt;br&gt;
Next, I applied:&lt;br&gt;
tls&lt;br&gt;
I observed 40 TLS packets:&lt;br&gt;
&lt;strong&gt;TLS observation   Packets&lt;/strong&gt;&lt;br&gt;
Client Hello    1&lt;br&gt;
Server Hello    1&lt;br&gt;
Application Data    34&lt;br&gt;
Other TLS packets   4&lt;br&gt;
Total   40&lt;br&gt;
Client Hello begins the TLS handshake by communicating supported connection parameters.&lt;br&gt;
Server Hello responds with the server's selected parameters.&lt;br&gt;
Application Data represents encrypted application communication.&lt;br&gt;
&lt;strong&gt;What I learned:&lt;/strong&gt; Even when application data is encrypted, network analysts can still examine useful metadata and handshake information. Encryption protects content, but it does not make all network activity invisible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Understanding TCP connection establishment&lt;/strong&gt;&lt;br&gt;
I used this display filter:&lt;br&gt;
tcp.flags.syn == 1&lt;br&gt;
I observed two packets:&lt;br&gt;
• SYN&lt;br&gt;
• SYN-ACK&lt;br&gt;
These represent the first two stages of the TCP three-way handshake.&lt;br&gt;
The normal sequence is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; SYN — the client requests a connection.&lt;/li&gt;
&lt;li&gt; SYN-ACK — the server acknowledges the request.&lt;/li&gt;
&lt;li&gt; ACK — the client acknowledges the server's response.
This helped me understand how TCP establishes reliable connections before data exchange.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;4. Distinguishing private and public IP addresses&lt;/strong&gt;&lt;br&gt;
I applied the filter:&lt;br&gt;
ip&lt;br&gt;
I examined several source and destination address pairs.&lt;br&gt;
This helped me distinguish private IPv4 addressing from public IPv4 addressing.&lt;br&gt;
The key lesson was that a packet's source and destination fields help establish the direction of communication and identify the network endpoints involved.&lt;br&gt;
For privacy, I have not included the actual IP addresses from my local capture in this article.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Analyzing endpoints&lt;/strong&gt;&lt;br&gt;
I navigated to:&lt;br&gt;
Statistics → Endpoints → IPv4&lt;br&gt;
The endpoint statistics showed that my own computer's local IPv4 address had the highest observed packet count, with 45 packets.&lt;br&gt;
An endpoint provides statistics about an individual network address.&lt;br&gt;
This is useful when investigating which hosts are most active in a capture.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Analyzing TCP conversations&lt;/strong&gt;&lt;br&gt;
I then navigated to:&lt;br&gt;
Statistics → Conversations → TCP&lt;br&gt;
My capture contained 15 TCP conversations.&lt;br&gt;
The conversation with the highest observed packet count involved my computer and an external IP address, with 28 packets.&lt;br&gt;
This introduced an important distinction:&lt;br&gt;
• Endpoints provide statistics about individual network addresses.&lt;br&gt;
• Conversations provide statistics about communication between pairs of endpoints.&lt;br&gt;
This distinction is useful when moving from individual packet inspection to understanding communication between devices.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. Investigating TCP resets&lt;/strong&gt;&lt;br&gt;
Finally, I applied:&lt;br&gt;
tcp.flags.reset == 1&lt;br&gt;
Wireshark returned no packets.&lt;br&gt;
This meant no TCP reset packets were observed in this capture.&lt;br&gt;
It does not prove that resets never occur on the network or that the network is secure. It is simply an observation limited to the captured traffic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key lessons&lt;/strong&gt;&lt;br&gt;
Through this practical exercise, I developed an introductory understanding of:&lt;br&gt;
• Live packet capture using Wireshark.&lt;br&gt;
• DNS queries and responses.&lt;br&gt;
• TLS handshakes and encrypted application data.&lt;br&gt;
• TCP connection establishment.&lt;br&gt;
• Private and public IPv4 addressing.&lt;br&gt;
• Endpoint statistics.&lt;br&gt;
• TCP conversation analysis.&lt;br&gt;
• TCP reset investigation.&lt;br&gt;
• Evidence-based network investigation.&lt;br&gt;
One particularly important lesson was that unusual traffic does not automatically mean malicious activity. An analyst must examine the context, identify the source, understand the communication patterns and gather supporting evidence before drawing conclusions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limitations&lt;/strong&gt;&lt;br&gt;
This exercise used a short capture of approximately 30 seconds containing 145 packets.&lt;br&gt;
It was not a full network security assessment, penetration test or confirmed incident investigation.&lt;br&gt;
The absence of TCP reset packets does not establish that the network is secure. Similarly, packet counts alone cannot establish malicious behavior.&lt;br&gt;
Further investigation using longer captures, traffic baselines and additional network monitoring tools would be necessary for deeper analysis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
This challenge gave me practical experience using Wireshark to understand network communication.&lt;br&gt;
Rather than just learning what DNS, TLS and TCP mean theoretically, I was able to observe their behavior in actual network traffic.&lt;br&gt;
I am continuing to build practical skills across networking, cybersecurity, artificial intelligence and software engineering.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tools used:&lt;/strong&gt; Wireshark, Windows 11.&lt;br&gt;
&lt;strong&gt;GitHub portfolio:&lt;/strong&gt; OJO Cybersecurity Journey&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;This article documents a personal educational exercise. No unauthorized network access or interception was performed.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>networking</category>
      <category>wireshark</category>
      <category>cybersecurity</category>
      <category>beginners</category>
    </item>
    <item>
      <title>What I Learned About Web Application Security: Threat Modelling a PHP Invoice Application</title>
      <dc:creator>Jesse Ochoi</dc:creator>
      <pubDate>Thu, 05 Nov 2026 22:26:58 +0000</pubDate>
      <link>https://dev.to/jesse_ochoi/what-i-learned-about-web-application-security-threat-modelling-a-php-invoice-application-17d3</link>
      <guid>https://dev.to/jesse_ochoi/what-i-learned-about-web-application-security-threat-modelling-a-php-invoice-application-17d3</guid>
      <description>&lt;p&gt;I'm currently developing my skills in software engineering, networking and cybersecurity. As part of my learning journey, I recently completed a practical threat-modelling exercise using a PHP/MySQL invoice application as a case study.&lt;br&gt;
The goal wasn't simply to learn security terminology. It was to understand how attackers might target a web application and how developers can reduce those risks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Identifying potential threats&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Brute-force attacks&lt;/strong&gt;&lt;br&gt;
An attacker repeatedly attempts different passwords to compromise an administrator account.&lt;br&gt;
Potential defence: Login rate limiting, progressive delays and monitoring.&lt;br&gt;
&lt;strong&gt;SQL injection&lt;/strong&gt;&lt;br&gt;
An attacker manipulates application input to interfere with database queries.&lt;br&gt;
Potential defence: Prepared SQL statements and appropriate database permissions.&lt;br&gt;
&lt;strong&gt;Broken access control&lt;/strong&gt;&lt;br&gt;
An unauthenticated user attempts to access protected pages, such as an administrator dashboard.&lt;br&gt;
Potential defence: Server-side session checks and authorization on every protected resource.&lt;br&gt;
&lt;strong&gt;Session hijacking&lt;/strong&gt;&lt;br&gt;
An attacker obtains an administrator's active session cookie and attempts to impersonate that administrator.&lt;br&gt;
Potential defence: HTTPS, secure cookie attributes, session expiration and proper session management.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Understanding browser cookie security&lt;/strong&gt;&lt;br&gt;
I studied three important cookie attributes:&lt;br&gt;
• HttpOnly: Prevents JavaScript from directly reading the cookie.&lt;br&gt;
• Secure: Restricts cookie transmission to HTTPS.&lt;br&gt;
• SameSite: Helps mitigate cross-site request forgery (CSRF).&lt;br&gt;
One particularly important lesson was that HttpOnly does not completely prevent session abuse.&lt;br&gt;
A browser can automatically attach eligible session cookies to requests. Therefore, malicious JavaScript running in an application's origin may still perform actions using the authenticated browser session, even when it cannot directly read the cookie.&lt;br&gt;
This helped me understand why preventing XSS and securing sessions must work together.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Key lessons&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Authentication and authorization are different security concepts.&lt;/li&gt;
&lt;li&gt; Server-side validation is essential.&lt;/li&gt;
&lt;li&gt; Prepared statements help prevent SQL injection.&lt;/li&gt;
&lt;li&gt; Rate limiting helps reduce brute-force attacks.&lt;/li&gt;
&lt;li&gt; Cookie security requires multiple defensive layers.&lt;/li&gt;
&lt;li&gt; XSS can remain dangerous even when session cookies use HttpOnly.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;4. What comes next?&lt;/strong&gt;&lt;br&gt;
My next step is to move beyond theoretical threat modelling and examine how these protections can be implemented and tested in a PHP application.&lt;br&gt;
I'm documenting each completed exercise as part of my journey towards becoming a stronger software engineer with practical cybersecurity knowledge.&lt;br&gt;
Question for the community:&lt;br&gt;
What's one web application security mistake you commonly see beginner developers make?&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>php</category>
      <category>webdev</category>
      <category>learning</category>
    </item>
  </channel>
</rss>
