8000 GitHub - andrejtomci/andrejtomci.com · GitHub
[go: up one dir, main page]

Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

andrejtomci.com

Personal site of Andrej Tomči, built with Astro 7 as a fully static site and deployed to GitHub Pages at https://andrejtomci.com.

Requirements

  • Install Node 24 (nvm use reads .nvmrc)
  • npm

Install dependencies with npm install.

Local commands

  • npm run dev: dev server with the real content in src/content/.
  • npm run dev:fixtures: dev server with fake data from fixtures/content/.
  • npm run build: runs astro check, the tests and astro build. The output goes to dist/.
  • npm test: runs the unit tests.

Editing content

All content lives in src/content/ and is validated when the site builds. An invalid entry fails the build and the error names the file and field.

src/content/
  site.yaml          # identity, links, pitch, headline, bounty count
  cves.yaml          # list of CVEs
  talks.yaml         # list of talks
  tools.yaml         # list of tools
  recognition.yaml   # list of recognition entries
  writeups/*.md      # one Markdown file per writeup

Dates: month fields accept YYYY-MM or YYYY-MM-DD and are stored as YYYY-MM. Writeup dates are full dates shown as YYYY-MM.

site.yaml

name: Andrej Tomči
role: Security Researcher
location: ""            # optional; hidden when empty
headline: I find the bugs before {attackers} do.   # {word} gets the highlight
description: ...        # optional; search and link-preview text, up to 170 characters
pitch: >-
  ...
vulns_intro: >-        # optional; a paragraph under the Vulnerabilities heading
  ...
email: ...
linkedin: https://www.linkedin.com/in/...
links:                  # extra profiles, shown in the sidebar in this order
  - { label: GitHub, handle: andrejtomci, url: https://github.com/andrejtomci }
bounty_reports: "40+"   # optional
contact_note: audits, talks, roles   # optional

cves.yaml (one entry per CVE or GitHub advisory)

- id: CVE-2025-12345          # a CVE ID, or GHSA-xxxx-xxxx-xxxx for a published GitHub advisory without a CVE
  date: 2025-09               # YYYY-MM, publication month
  product: example-xml
  language: C                 # optional
  title: Heap buffer overflow in entity expansion
  cvss: 9.8                   # 0.1–10.0; optional when severity is set
  severity: Critical          # optional; derived from cvss when omitted
  advisory: https://...       # required
  poc: https://...            # optional
  • Severity defaults to the CVSS v3 bands: 9.0–10.0 Critical, 7.0–8.9 High, 4.0–6.9 Medium, 0.1–3.9 Low. Setting severity overrides it, for vendors that rate differently.
  • A duplicate ID fails the build.
  • For a fix that credits you but has no CVE or advisory (for example a release note), write id: none. The row shows "No CVE assigned" and its title links to the fix. Without a CVSS score, set severity instead of cvss.
  • List a GitHub advisory by its GHSA ID only while it has no CVE; once a CVE is assigned, switch the id to the CVE. Only list advisories that are already public. GHSA entries are counted separately ("10 CVEs · 1 GitHub advisory") and not in the "CVEs assigned" stat.
  • The Writeup link on a CVE row comes from the writeup frontmatter, so each link is recorded in one place.
  • A CVE ID in a writeup's cves that doesn't appear in cves.yaml fails the build.

talks.yaml

- date: 2026-05
  title: ...
  event: ...
  city: ...                   # optional
  kind: Talk                  # Talk | Workshop | Panel
  event_url: https://...      # optional; the event or meetup page
  slides: https://...         # optional
  video: https://...          # optional

tools.yaml

- name: taint-rules
  date: 2025-02
  description: ...
  url: https://github.com/...
  tags: [Semgrep, YAML]

recognition.yaml

- date: 2026-06
  title: ...
  org: ...
  kind: Ranking               # Ranking | Hall of fame | Award | Certification
  url: https://...            # optional

writeups/<slug>.md frontmatter

title: ...
date: 2026-08-14
summary: ...                  # one or two sentences, shown in lists
cves: [CVE-2024-12345]        # optional; adds a Writeup link to those CVE rows
url: https://...              # optional; when set, the writeup is external and no page is generated

The reading time of a hosted writeup is computed from its word count.

Adding a writeup

Create a file in src/content/writeups/. The filename becomes the URL: ssrf-via-webhooks.md is served at /writeups/ssrf-via-webhooks/. Put the frontmatter between two --- lines, then write the article in Markdown below it.

---
title: "SSRF via webhooks"
date: 2026-08-14
summary: How a webhook preview fetched internal addresses.
cves: [CVE-2024-12345]
---

First paragraph of the writeup.

## A heading

More text.

Common mistakes

  • The starter list files (cves.yaml, talks.yaml, tools.yaml, recognition.yaml) contain []. Replace the [] with your first entry. Adding - id: lines below [] fails with a YAML error.
  • Quote values that contain : (a colon followed by a space), for example title: "SSRF: via webhooks".
  • While a list file is empty (or there are no writeups), the build prints an empty-collection or empty-writeups warning. This is expected and harmless.

Social preview image

public/og.png is the 1200×630 card shown when the site is shared (LinkedIn, Slack, X). It is rendered from scripts/og/og.html; after changing the headline or name, edit that file and re-render with Docker:

docker run --rm -u "$(id -u):$(id -g)" -e HOME=/tmp -v "$PWD":/work:ro -v "$PWD/public":/out \
  mcr.microsoft.com/playwright:v1.64.1-noble \
  sh -c 'cd /tmp && npm init -y >/dev/null && npm i playwright@1.64.1 >/dev/null && cp /work/scripts/og/render.mjs /tmp/ &&
67DD
; node /tmp/render.mjs'

Deployment

The GitHub Actions workflow in .github/workflows/deploy.yml runs on pushes to main and on pull requests. It builds the site with withastro/action, and it deploys to GitHub Pages only for pushes to main. A failed build blocks the deploy.

One-time GitHub Pages setup

The repo has no CNAME file, because GitHub ignores it when a custom workflow publishes the site. Set up the domain once:

  1. Verify andrejtomci.com in the GitHub account's Pages settings. This prevents domain takeover.
  2. In the repo's Settings → Pages, set the custom domain to andrejtomci.com, set "Source" to "GitHub Actions", and enable "Enforce HTTPS".
  3. Add these DNS records:
    • Apex A records: 185.199.108.153, 185.199.109.153, 185.199.110.153, 185.199.111.153
    • Apex AAAA records: 2606:50c0:8000::153, 2606:50c0:8001::153, 2606:50c0:8002::153, 2606:50c0:8003::153
    • www CNAME record pointing to andrejtomci.github.io

Publishing

Commit and push to main. Open the repo's Actions tab and watch the "Deploy" run. If it fails, open the failing step's log. Content errors name the file, the entry and the field, for example talks → 0 … date. The index is 0-based, so 0 is the first entry in the file.

Before the first deploy

  • Fill in linkedin and email in site.yaml first. They are the primary contact routes.
  • In Settings → Pages, set "Source" to "GitHub Actions".
  • Complete the domain steps in "One-time GitHub Pages setup" above.
  • Check the site manually on a phone and on desktop, in light and dark mode.
  • Use the CVE filters, pager and "Clear filters" with the keyboard only.
  • Check the page with JavaScript disabled (all CVEs should still be listed).
  • Run Lighthouse and look at the results.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0