diff --git a/.agents/skills/writing-docs/SKILL.md b/.agents/skills/writing-docs/SKILL.md new file mode 100644 index 0000000..92253d7 --- /dev/null +++ b/.agents/skills/writing-docs/SKILL.md @@ -0,0 +1,115 @@ +--- +name: writing-docs +description: Write and review Hacktron documentation with a humanizer pass, current product screenshots, useful Mintlify components, and verified inter-page links. +--- + +# Writing Hacktron docs + +Use this skill for new guides, documentation updates, and reviews in this repo. +Follow it alongside the user's request and the repo's contribution instructions. + +## Start with the reader and the product + +- Read the existing page and a nearby guide. Match their voice and level of detail. +- Identify what the reader wants to do and what they need before starting. +- Check the current product UI and source for labels, permissions, availability, + limits, and outcomes. Keep exact button names. Ask about genuine uncertainty. +- Explain the shortest complete path through the task. Include meaningful limits + and failure recovery. Leave implementation details out of customer guides. +- Extend the existing page when it fits. Add a page when the task deserves its own + destination, then connect it to navigation and related guides. + +## Run a humanizer pass + +Use an available `humanizer` skill, such as +[blader/humanizer](https://github.com/blader/humanizer). If unavailable, apply this +equivalent editing pass. Run it on the final prose, including captions, cards, +descriptions, and callouts. + +1. Read the whole draft once for meaning and flow. Mark boilerplate, repetition, + inflated claims, and sentences a teammate would never say. +2. Rewrite around the reader's action. Use concrete verbs and ordinary words. + Start with the useful fact or instruction. Preserve verified behavior, limits, + safety guidance, and exact UI labels. +3. Remove staged contrasts such as "not X, but Y", "it's X, not Y", and their + two-sentence equivalents. State the fact directly. Keep factual restrictions + when the reader needs them. +4. Replace prose semicolons and em dashes with natural sentences. Leave syntax in + code, URLs, and literal UI labels alone. +5. Cut announcements like "let's dive in", sales language like "seamlessly + leverage", forced groups of three, and closers that repeat the preceding point. + Avoid repetitive sentence templates and unnecessary bold text. +6. Read the rewrite aloud. Check that it sounds like a helpful colleague and that + no behavior, promise, or example was invented while making it sound smoother. + +Do not turn a technical guide into chatty commentary. Prefer a short, direct +explanation to either stiff prose or artificial personality. + +Examples: + +- "The team issues the letter; you do not create it in the dashboard." becomes + "Contact us to request a letter." +- "Exports include all pages, not just the current page." becomes + "The export includes matching findings across all pages." +- "Retesting checks fixes; it is not a new assessment." becomes + "The retest covers the fixes you submitted." + +## Include product screenshots + +- Include screenshots in dashboard workflow guides. Capture the controls and + states the reader needs, especially menus, configuration steps, and results. + A screenshot of the documentation itself is review evidence, not a product + screenshot for the guide. API-only or conceptual pages may not need an image. +- Match the view to the reader. For shared letters and public disclosures, show + the public page recipients see. Verify it opens without sign-in and omit + issuer/admin controls. For report guides, show a generated document example, + such as its contents page, alongside the download instructions. +- Capture the real current application. Use a dedicated test account and demo + data. If a state is unavailable, use the actual frontend with sanitized sample + fixtures and disclose that provenance in the PR. Never draw a replacement UI + or present sample outcomes as a completed customer engagement. +- Exclude customer data, personal information, credentials, private source, and + secret-bearing URLs. Do not mutate a customer's engagement to obtain a picture. +- Follow the existing screenshot style and theme. Keep labels readable at article + width. Crop to the relevant panel when useful, retaining the original evidence. + Avoid browser chrome, debug widgets, loading states, and accidental tooltips. +- Store assets under `images/` with descriptive names. Place each image beside + the instruction it explains, using descriptive alt text and the existing image + or `Frame` pattern. Reuse an image only if its UI is still current. +- If safe capture is blocked, explain the gap. Do not silently omit screenshots + from a UI guide or substitute an unrelated image. + +## Use Mintlify components with a purpose + +- Use `Steps` for ordered actions. Put an optional-step `Note` at the top of the + relevant step. Use ordinary prose for a short explanation. +- Put `Note`, `Tip`, and `Warning` beside the decision they affect. Reserve + warnings for consequences such as public access, destructive actions, or + one-time limits. Avoid repeating the same caveat in a callout and the prose. +- Use `Card` and `Columns` for distinct starting points or next tasks, especially + on overview pages. Do not turn every cross-reference into a card. +- Use `Tabs` for genuine alternatives and `Accordion` for optional detail. Keep + prerequisites and required steps visible. +- Use tables for real comparisons, statuses, and limits. Avoid tables that just + decorate a list or repeat surrounding instructions. +- Add inter-page links where the reader needs them. Embed the link in the + relevant sentence instead of appending a generic "see also" paragraph. +- Link to real page headings. Step titles may not create usable anchors in + Mintlify. Check the landing position in the browser. + +## Verify the finished guide + +1. Recheck claims against the product, especially labels visible in screenshots. +2. Run `pnpm lint` and `pnpm exec mintlify broken-links`. +3. Preview with `pnpm exec mintlify dev --port 3000`. Follow the repo's testing + approval and handoff rules for browser-driven checks. +4. In the browser, verify navigation, images and alt text, component rendering, + mailto targets, cross-page links, and heading anchor landings. Check image + legibility at article width and a narrow viewport. +5. Review the final diff for unsupported claims, filler, semicolons, contrast + templates, missing images, and duplicate navigation. Run normal commit hooks. +6. Put browser evidence and any sample-data or untested caveat on the PR. Distinguish + rendered-document checks from testing the product operations themselves. + +The guide is ready when a reader can complete the task without guessing and the +prose, screenshots, and product describe the same workflow. diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..dc2def3 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,8 @@ +# Documentation + +Before writing or reviewing documentation, read and follow +`.agents/skills/writing-docs/SKILL.md`. + +Keep the existing human voice. Include product screenshots for dashboard +workflows, use Mintlify components where they help the reader, and check the +rendered pages before opening or updating a PR. diff --git a/docs.json b/docs.json index ad21c55..9bc6683 100644 --- a/docs.json +++ b/docs.json @@ -140,9 +140,17 @@ "group": "Getting started", "pages": ["white-box-pentest/quickstart"] }, + { + "group": "Scan activity", + "pages": ["white-box-pentest/logs"] + }, { "group": "After the scan", - "pages": ["white-box-pentest/retests"] + "pages": [ + "white-box-pentest/findings-and-reports", + "white-box-pentest/retests", + "white-box-pentest/attestation-letters" + ] }, { "group": "Credits and billing", diff --git a/images/whitebox_attestation_public.png b/images/whitebox_attestation_public.png new file mode 100644 index 0000000..958366b Binary files /dev/null and b/images/whitebox_attestation_public.png differ diff --git a/images/whitebox_findings_export.png b/images/whitebox_findings_export.png new file mode 100644 index 0000000..1dfeb6e Binary files /dev/null and b/images/whitebox_findings_export.png differ diff --git a/images/whitebox_report_contents.png b/images/whitebox_report_contents.png new file mode 100644 index 0000000..aabb016 Binary files /dev/null and b/images/whitebox_report_contents.png differ diff --git a/images/whitebox_retest_reports.png b/images/whitebox_retest_reports.png new file mode 100644 index 0000000..2672de8 Binary files /dev/null and b/images/whitebox_retest_reports.png differ diff --git a/images/whitebox_retest_result.png b/images/whitebox_retest_result.png new file mode 100644 index 0000000..08c8268 Binary files /dev/null and b/images/whitebox_retest_result.png differ diff --git a/images/whitebox_scan_logs.png b/images/whitebox_scan_logs.png new file mode 100644 index 0000000..2f64c99 Binary files /dev/null and b/images/whitebox_scan_logs.png differ diff --git a/images/whitebox_validation_activity.png b/images/whitebox_validation_activity.png new file mode 100644 index 0000000..f900765 Binary files /dev/null and b/images/whitebox_validation_activity.png differ diff --git a/white-box-pentest/attestation-letters.mdx b/white-box-pentest/attestation-letters.mdx new file mode 100644 index 0000000..418f447 --- /dev/null +++ b/white-box-pentest/attestation-letters.mdx @@ -0,0 +1,43 @@ +--- +title: "Attestation letters" +description: "Request an attestation letter from Hacktron and share it with auditors or customers." +--- + +An attestation letter confirms the application assessed and the engagement +period. Share it with auditors or customers who need evidence of the pentest. + +## Request a letter + +[Contact us](mailto:hello@hacktron.ai) after your pentest to request an attestation +letter. Include your organization, application, and scan so our team can issue it. + +## View, download, or share a letter + +Once issued, open **Attestation letters** in the dashboard sidebar. Each letter +lists the customer, application, test type, engagement period, and issue date. + +Open the letter's actions menu and choose: + +- **Open** to view the letter +- **Copy link** to share it +- **Download PDF** to save a copy + + + Anyone with the shared link can view and download the letter without signing + in. Share it only with the people who need it. + + +## Example letter + +The shared link opens a public page with the letter and a **Download PDF** +button. The example below uses sample data. + + + Sample public attestation letter for Acme's Demo application, with engagement dates, scope, methodology, retest confirmation, signature, and verification QR code + + +For detailed findings and remediation evidence, [download a pentest +report](/white-box-pentest/findings-and-reports#download-a-report). diff --git a/white-box-pentest/findings-and-reports.mdx b/white-box-pentest/findings-and-reports.mdx new file mode 100644 index 0000000..2f42e6f --- /dev/null +++ b/white-box-pentest/findings-and-reports.mdx @@ -0,0 +1,88 @@ +--- +title: "Findings and reports" +description: "Export pentest findings as CSV, SARIF, or JSON, or download a PDF report." +--- + +Open a completed scan in **Whitebox Scans**. Click **View findings** to review +its findings, or use **Download report** at the top of the scan page for a PDF. + +## Export findings + + + + From the scan, click **View findings** to open the **Findings** page filtered + to that scan. Narrow the list with search or filters such as severity, + status, or repository. + + Select checkboxes to export individual findings. Leave them unselected to + export matching findings across all pages. + + + + Click **Export**, or **Export N selected** if you selected rows, then choose: + + - **Download CSV** for spreadsheets + - **Download SARIF** for tools that accept SARIF security results + - **Download JSON** for structured finding data + + + Findings Export menu with Download CSV, Download SARIF, and Download JSON options + + + + + +## Download a report + +On the scan page, open **Download report** and choose: + +- **Full Whitebox Report** for the detailed assessment and findings, including + technical evidence and recommendations +- **Executive Report** for a shorter report with the risk assessment, key + findings, and next steps + +Both download as PDFs. The Executive Report is available for completed scans +with findings. If Hacktron needs to prepare its summary, the PDF downloads +when it's ready. + +### Example report + +The Full Whitebox Report's contents page links to each section and finding. +This example uses sample data. + + + Sample Full Whitebox Report contents with executive summary, scope, findings summary, methodology, severity rubric, individual findings, and limitations + + +## Reports after a retest + +After Hacktron completes a [retest](/white-box-pentest/retests), **Download +report** has two groups: + +- **Original scan**: the report as delivered before the retest +- **After retest**: the updated report with verification results + +Choose a report under the group you need. Both updated reports include a retest +summary and updated risk rating. In the full report, fixed findings also have a +**Fix Note** alongside their original technical details. + + + Download report menu with Original scan and After retest groups, each offering Full Whitebox Report and Executive Report + + + + Some older scans do not have a saved original report or executive summary. If + the original is unavailable, download the **After retest** edition instead. + + +For a letter confirming the engagement, [contact us for an attestation +letter](/white-box-pentest/attestation-letters). diff --git a/white-box-pentest/logs.mdx b/white-box-pentest/logs.mdx new file mode 100644 index 0000000..ec6fac3 --- /dev/null +++ b/white-box-pentest/logs.mdx @@ -0,0 +1,52 @@ +--- +title: "Viewing pentest logs" +description: "Follow scan progress and inspect the agents' validation activity, including dynamic testing actions." +--- + +Open a scan in **Whitebox Scans** to follow a run or review its logs later. + +## Scan timeline + +Expand **Timeline** to see the scan phases, timing, and progress. Click a phase +for more detail. On completed scans, the timeline starts collapsed. + +## Agent activity + +Expand **Agents** to see the findings being checked. Click a finding for its +description and any dismissal reason. + +Click **View validation activity** beside an agent to open its log. You can +follow its progress and click **Show findings** to see what it checked. + + + Scan Timeline and Agents expanded, with View validation activity beside an agent + + +### Dynamic testing actions + +For scans with dynamic testing, the log includes actions taken against your +deployed application. + +1. Open **View validation activity** for the agent you want to inspect. +2. Expand the **steps** beneath an activity message to see the actions taken. +3. Expand an action to inspect its recorded details, such as a command and its + output or a browser interaction. + + + Validation activity with a dynamic testing action expanded to show its details + + +Logs update while the agent runs. Retry attempts appear in the same window. + + + Validation activity is available for scans with recorded activity logs. + + +Once the scan finishes, [review and export its findings or download a +report](/white-box-pentest/findings-and-reports). diff --git a/white-box-pentest/overview.mdx b/white-box-pentest/overview.mdx index eb7c723..39c445d 100644 --- a/white-box-pentest/overview.mdx +++ b/white-box-pentest/overview.mdx @@ -42,6 +42,28 @@ White-box Pentest is a good fit when you need: Each scan includes **one free retest**. [Request a retest](/white-box-pentest/retests) after fixing your findings to get an updated report. +## Logs and deliverables + + + + Follow scan progress and inspect dynamic testing actions. + + + Export findings or download original and post-retest reports. + + + Request a letter to share with auditors or customers. + + + ## Run status | Status | Meaning | diff --git a/white-box-pentest/quickstart.mdx b/white-box-pentest/quickstart.mdx index ee549f5..0b30235 100644 --- a/white-box-pentest/quickstart.mdx +++ b/white-box-pentest/quickstart.mdx @@ -59,9 +59,8 @@ On-premises deployments can select an enabled GitHub Enterprise Server repositor 2. Fill in **Auth instructions** with login steps, dedicated test credentials, and how to confirm successful access. For a public site, state that no login is required and describe the page that should load. - 3. Click **Verify access**. Hacktron follows your instructions in a browser; - a live access preview lets you watch the attempt. Wait for the target to - show **Verified** before continuing. + 3. Click **Verify access**. Watch the attempt in the live browser preview. + Wait for the target to show **Verified** before continuing. Use **Add target** for another application. Each target needs its own domain and instructions. With multiple targets, **Verify all** checks the targets @@ -98,8 +97,10 @@ On-premises deployments can select an enabled GitHub Enterprise Server repositor - Watch the run status in the dashboard. When the scan completes, review - findings and export the output needed for remediation or audit evidence. + [View the pentest logs](/white-box-pentest/logs) to follow progress and inspect + dynamic testing actions. When the scan completes, [export findings or + download a report](/white-box-pentest/findings-and-reports) for remediation + or audit evidence. Track scan progress and review findings in the dashboard @@ -138,8 +139,9 @@ For a public target: Auth instructions are shared with AI agents for testing. Use a test - environment and dedicated test accounts, not personal credentials or - production secrets. Revoke test credentials after the assessment. + environment and dedicated test accounts. Keep personal credentials and + production secrets out of these instructions. Revoke test credentials after + the assessment. ## Scope checklist diff --git a/white-box-pentest/retests.mdx b/white-box-pentest/retests.mdx index 7fbb7c3..eb04548 100644 --- a/white-box-pentest/retests.mdx +++ b/white-box-pentest/retests.mdx @@ -6,8 +6,8 @@ description: "Ask Hacktron to verify your fixes and download an updated pentest After fixing your pentest findings, ask the Hacktron team to verify them. - Each scan includes **one free retest**. Submit once your fixes are ready; you - cannot request another retest for the same scan. + Each scan includes **one free retest**. You can request it once per scan, so + wait until your fixes are ready. ## Before you request a retest @@ -23,14 +23,18 @@ role or higher to request one. Viewers can read the results. In **Whitebox Scans**, open the scan and click **Request retest**. + + Commit SHAs, deployment URLs, and a summary of fixes are optional. + + Choose the branch containing your fixes for each repository. To add commit - SHAs under **Commits**, press Enter after each one. This is optional. + SHAs under **Commits**, press Enter after each one. - Optionally, add **Deployment URLs** and a **Summary of fixes** to help - the team check your changes. + Add **Deployment URLs** and a **Summary of fixes** to help the team check + your changes. - For uploaded code, describe the changes in the summary; you cannot - attach a replacement archive. + For uploaded code, describe the changes in the summary. Replacement + archives aren't supported. @@ -61,5 +65,23 @@ notes and the outcome of each finding: You'll also get an email if notifications are enabled. -After the retest, a new report is added with fix notes showing which findings -were fixed. + + Retest results showing a finding marked Verified fixed and the team's verification note + + +## Download the updated report + +On the scan page, open **Download report**. Under **After retest**, choose +**Full Whitebox Report** or **Executive Report** to download the updated PDF. + +The full report includes a **Fix Note** on each finding verified as fixed, +alongside its original technical details. The retest summary shows which +findings were fixed, remain unfixed, or were not retested. The retest covers the +fixes you submitted. + +To download the report from before the retest, choose a report under +**Original scan** instead. See [Findings and reports](/white-box-pentest/findings-and-reports#reports-after-a-retest) +for report options and availability.