Skill instructions
after-a-hack2.37 KB
View saved version →
---
name: after-a-hack
description: Guide the user through what to do when Relvato's monitors show signs that their website was hacked — contain it, clean it, check it again, then watch it closely with quarantine mode. Use when the user says their site was hacked or compromised, or Relvato found hack symptoms, unknown admins, unexpected file changes or injected scripts.
---
# After a hack
Use the Relvato Security Monitoring tools (`site_overview`, `list_runs`, `get_run`, `get_fix_prompt`, `get_activity_log`, `trigger_scan`, `get_quarantine`, `start_quarantine`, `extend_quarantine`). Call Relvato's checks **monitors** when talking to the user. Stay calm and practical: a finding is a sign, not proof, so say what Relvato saw and where.
## 1. What happened
Call `site_overview`, then `list_runs` and `get_run` for the failed security runs: hack symptoms, file integrity, admin users and sign-ins, script origins. On WordPress, `get_activity_log` shows recent sign-ins, new accounts and changed settings. Summarise what changed and since when, with each run's link.
## 2. Contain and clean
Tell the user, in this order:
1. Change the passwords of every administrator, the hosting account and the database, and remove admin accounts nobody recognises.
2. Restore a clean backup from before the first sign, or replace the changed core, plugin and theme files with fresh copies, and delete files that shouldn't be there. `get_fix_prompt` on a failed run gives the exact steps for what it found.
3. Update or remove the plugin or theme that let the attacker in, if a vulnerability monitor named one.
4. If the site was listed as unsafe, request a review in Google Search Console once it's clean.
File-integrity and script-origin changes the owner made on purpose are approved in the Relvato dashboard, never from here.
## 3. Check it again
With the user's OK, call `trigger_scan` with `group: "security"` and report each result. Runs count toward the monthly quota.
## 4. Watch it closely
On WordPress, suggest quarantine mode: `start_quarantine` runs the security monitors every hour for 48 hours, pauses plugin updates and alerts on every unexpected change. Call `get_quarantine` first: it says whether the account includes it and how many runs it uses. Ask before starting it. `extend_quarantine` keeps it on for longer; stopping it early is done in the Relvato dashboard.
security-review4.37 KB
View saved version →
---
name: security-review
description: Review a website's security from Relvato's monitors — known-vulnerable plugins, themes and core, signs of a hack (spam pages, injected redirects, a listing as unsafe), changed or unexpected files, new admin users and suspicious sign-ins, exposed backups and config files, new third-party scripts — and say what to do first. Use when the user asks whether their site is secure or hacked, or about vulnerabilities, malware, exposed files or a security alert.
---
# Review a site's security
Use the Relvato Security Monitoring tools (`list_sites`, `site_overview`, `list_checks`, `list_runs`, `get_run`, `get_fix_prompt`, `get_updates`, `get_activity_log`, `get_quarantine`, `get_safe_update`, `trigger_scan`). Call Relvato's checks **monitors** when talking to the user.
## 1. Which site
Use the site the user named, if any; otherwise call `list_sites` and ask if there are several. If the tools answer that the user isn't signed in, tell them to sign in to Relvato in ChatGPT, then try again.
## 2. Read the security monitors
Call `site_overview` for what needs attention. Call `list_checks` to see which security monitors the site has, then `list_runs` and `get_run` for each one whose latest run failed or warned. Relvato's Security group:
- `vuln-scan`: known vulnerabilities in the site's plugins, themes and WordPress core
- `hack-symptoms`: signs of a hack, such as spam pages, injected redirects or links, or a listing as unsafe
- `file-integrity` and `theme-integrity`: core, plugin and theme files that changed, files that shouldn't be there, and anything hidden from WordPress's own screens: a plugin, a scheduled task or posts and pages, with the code doing the hiding named by file and line
- `user-audit` and `admin-logins`: new or elevated admin users, and suspicious sign-ins
- `exposure-scan`: backups, debug logs, `.env` and config files anyone can download, and leaked keys
- `script-origins`: new third-party scripts on the pages, a card skimmer's usual way in
- `mixed-content`, `wp-health`, `backup-freshness` and `async-health`: hygiene
On WordPress, call `get_updates` for vulnerable plugins with an update and any rollbacks, `get_activity_log` for recent sign-ins and account changes, and `get_quarantine` for a recent cleanup watch.
## 3. Report
Order by urgency:
1. Signs of an active compromise: hack symptoms, unexpected file changes, unknown admins, new scripts.
2. Known vulnerabilities, and whether a fixed version exists.
3. Exposed files.
4. Hygiene.
A finding is a sign, not proof. Say what Relvato saw, where, and since when, and link each run. If nothing is wrong, say which monitors are watching, so "all clear" means something.
If the site has no security monitors, suggest adding them with `start_monitoring_for_goals` and the goal `security`, and only with the user's OK. Most of them need the site's ownership proven first; the `security-setup` skill walks through that.
## 4. What to do
- **File-integrity, script-origin and DNS changes** are approved by the owner in the Relvato dashboard, never from here. Say what to look at and link the site.
- **Vulnerable plugin on WordPress:** give the user the run's link (from `get_run`). From there an administrator updates the plugin to the fixed version (or deactivates it) in WordPress, and Relvato re-runs the monitors that were passing and says if anything broke; `get_safe_update` shows how it went. This app doesn't change the site itself.
- **Exposed files:** say which file, why it matters (a backup or `.env` file can hold database passwords and keys), and that it should be deleted from the server or blocked; any key it held should be changed. Call `get_fix_prompt` on the run for the exact steps.
- **Something hidden from WordPress's own screens** (a scheduled task or posts left out of WordPress's lists, or code that changes what WordPress lists, asked about once): explain that malware hides this wa
Preview of the first 4,000 characters. Read full instructions →
security-setup3.14 KB
View saved version →
---
name: security-setup
description: Set up Relvato's security monitoring for a website — add the site, prove it's the user's (the Relvato WordPress plugin, Google Search Console, Bing Webmaster Tools, Cloudflare, a meta tag or a DNS record), add the security monitors and run them for the first time. Use when the user wants their site watched for hacks, vulnerabilities or exposed files, or asks how to start.
---
# Set up security monitoring for a site
Use the Relvato Security Monitoring tools (`list_sites`, `add_site`, `verify_site`, `start_monitoring_for_goals`, `list_checks`, `add_checks`, `trigger_scan`, `list_runs`, `get_run`). Call Relvato's checks **monitors** when talking to the user.
## 1. Add the site
Call `list_sites`; if the site is there, use it. Otherwise call `add_site` with the address and `platform` (`wordpress` or `other`). If the tools answer that the user isn't signed in, tell them to sign in to Relvato in ChatGPT, then try again.
## 2. Add the security monitors
Call `start_monitoring_for_goals` with the goal `security`. It adds the security monitors the account allows. To pick them one by one instead, use `list_checks` and `add_checks`.
## 3. Prove the site is the user's
Most security monitors need the site's ownership proven: they read the site from inside (vulnerabilities, file integrity, admin accounts and sign-ins need the Relvato WordPress plugin) or probe it the way an attacker would (the exposed-files scan and signs of a hack). Run the public monitors first (step 4), then tell the user once why proving it is worth it (`whyProve`, `unlocks`) and every way to do it (`proofOptions`), not just one. `add_site` returns `setup.nextStep`, the quickest way:
- **WordPress:** install and connect the Relvato plugin from WordPress → Plugins → Add New (search "Relvato"). Connecting it is the proof, and the inside monitors need it anyway.
- **Google Search Console, Bing Webmaster Tools or Cloudflare:** the user connects the account that owns the site in the Relvato dashboard, then you call `verify_site` with `method` `gsc`, `bing` or `cloudflare`. These change nothing on the site. Search Console needs an owner, not a full or restricted user, and Cloudflare needs the domain to be an active zone in that account.
- **A meta tag or a DNS record:** add the homepage meta tag or the DNS TXT record from `setup.nextStep`.
Then call `verify_site`. Never tell the user the site is proven, monitored, watched or will alert them before `verify_site` says so: until then the monitors are added but don't run on their schedule (`scheduleStarts`).
## 4. First runs
Before proof, `trigger_scan` can run the public monitors by hand, 3 times a day per domain. These are real runs against the live site: never call them a test, a preview or a simulation. Once the site is proven, call `trigger_scan` with `group: "security"` to run them all. Ask first, because runs count toward the monthly quota. Tell the user how long to expect (`estimatedMinutes`, `tellUser`), read `progress.line` to them while runs are live, and report each result with `get_run` when they finish. For what the results mean, follow the `security-review` skill.