Loading

beautiful engineering. Portfolio of Mariano Villagómez

Mariano Villagómez

Mechatronics · Cybersecurity · OT · AI · ML · LLMs

Monterrey, MX · 25.6866° N · 100.3161° W

I'm Mariano.

I study mechatronics (seventh semester) in Monterrey. I care about the point where machines, networks and software meet: cybersecurity, OT systems, artificial intelligence and language models. This is where I document what I build while I learn.

How I work
  • I follow my own study path, one hour a day, from the fundamentals (programming, Linux, networking) to specialized topics.
  • Every project ends with a documented repository: what it does, how it works, what it found and where its limits are.
  • I work on Linux (Fedora) and learn Git as I go, on real projects.
  1. Projects (01)

    What I have built and approved. Each project explains how it works, what it found and what it does not solve yet.

  2. P01 · Cybersecurity · Programming

    SSH log analyzer

    A Python command-line tool that reads an SSH authentication log and flags the IPs that look like brute-force attacks.

    failed attempts analyzed
    197,587
    distinct IPs
    1,008
    suspicious IPs (3 failures in 5 min)
    481

    Tools: Python 3 · csv · argparse · Linux

    P01Projects

    SSH log analyzer

    Problem

    A server exposed to the internet gets thousands of password attempts from bots. In a log with hundreds of thousands of lines, it is not obvious who is attacking. The tool marks an IP as suspicious when it has 3 or more "Failed password" events within 5 minutes.

    How it works

    1. It keeps only the lines that contain "Failed password".
    2. It extracts the IP, the time and the day from each line.
    3. It counts failures per IP and builds, for each one, the list of moments (in seconds) of its failures, including the day so failures from different days are never mixed.
    4. It sorts those moments and checks whether any 3 consecutive failures happened within 300 seconds.
    5. It prints the flagged IPs and exports a CSV report with the columns IP, Failures and Suspicious.

    Results

    failed attempts analyzed
    197,587
    distinct IPs
    1,008
    suspicious IPs (3 failures in 5 min)
    481

    On the Loghub OpenSSH log (December 10 to January 7), the tool found 197,587 failed attempts from 1,008 distinct IPs and flagged 481 as suspicious. The first version of the rule compared only the time of day and flagged 488; adding the day removed 7 false positives.

    Limitations

    • The log lines have no year; the tool counts days from December 1st and assumes the log crosses from December to January only once.
    • The rule is fixed (3 failures, 300 seconds), so slow attacks are not detected. For example, 115.71.16.143 has 569 failed attempts and is not flagged because its first attempts are about 25 minutes apart.
    • Only "Failed password" lines are analyzed; other failures, such as "Invalid user" lines without a password attempt, are ignored.

    What I learned

    • Working with files from code and reinforcing dictionaries and lists.
    • Using the csv and argparse libraries; argparse was my favorite because it lets the user interact with the program.
    • The hardest part was turning "3 failures in 300 seconds" into code and splitting the time and date out of each line; reading the documentation solved it.

    Tools

    Python 3 · csv · argparse · Linux

  3. The path continues. The next project will appear here once it is finished and reviewed.

Learning path

My own path, one hour a day, from the basics to the specialized.

  1. F0 · FundamentalsIn progress
    • Python with CS50x
    • Linux and the terminal: OverTheWire Bandit
    • Networking with the Cisco and Google courses
    • Git and GitHub on real projects
    • Project: P01, SSH log analyzer
  2. CompTIA Security+Next
    • Next certification after the Google certificate
  3. Cloud security or ML/LLMsLater
    • Specialization to be decided, connected to OT and AI

Certifications

Courses and certificates, finished or in progress.

  • 01Google Cybersecurity CertificateGoogle · CourseraCompleted · 2026

    Google's professional cybersecurity program. Credly badge to be published.

  • 02Networking EssentialsCisco Networking AcademyCompleted

    Networking fundamentals.

  • 03Cybersecurity EssentialsCisco Networking AcademyCompleted

    Cybersecurity fundamentals.

  • 04CyberOps AssociateCisco Networking AcademyIn progress

    Course in progress: security operations.

  • 05CS50xHarvard · edXIn progress

    Course in progress: computer science fundamentals.

Skills

Grouped by area. Click a band to see the details.

Let's talkengineering.

An internship, a project or a question? Write to me.