Security

Japan website security: WordPress, patching, WAF, backups

A practical Japan website security guide based on NPA and IPA material: how sites get tampered with, WordPress hardening, patching, WAF, backups and web vendor contract clauses.

Trị Trương · 22 min read
Japan website security: WordPress, patching, WAF, backups

A company website is the public face of a Japanese business, and when it is tampered with or used to spread malware the reputational damage usually outweighs the repair cost. This guide builds on material from Japan’s National Police Agency (NPA) and IPA to explain practical Japan website security: patching, WAF, backups, detection and contracts with web vendors, with specific points for WordPress.

Why Japan website security deserves steady attention

In IPA’s “10 Major Security Threats 2026”, the organisation list ranks attacks that exploit system vulnerabilities fourth and attacks that target the supply chain or contractors second. Both bear directly on websites: a CMS or plugin with a known flaw is a familiar entry point, and the web agency or hosting provider is a link in the chain that an attacker can use.

Website tampering (改ざん, kaizan) has many faces. A page can be visually altered, filled with hidden spam links to manipulate search results, loaded with code that redirects visitors to scam pages, or injected with JavaScript that skims card data from a payment form. Often the owner learns of it only when a customer or a search engine warns them. In Japanese business, where trust in dealings carries great weight, an incident also means explaining yourself to partners.

How sites are compromised, according to the NPA

The NPA’s guidance on website tampering names three routes: abuse of stolen account credentials, exploitation of software vulnerabilities, and weaknesses in internal access control. For WordPress these typically show up as weak or reused admin passwords, outdated plugins or themes with published vulnerabilities, and FTP, SSH or hosting-panel accounts that are poorly managed.

The NPA also notes that after an incident you should examine servers and devices that were not visibly affected, because the attacker may have passed through them. This is a reason to design for limited blast radius from the start, for instance by never sharing passwords between the website, the server and internal systems.

Key numbers in IPA and National Police Agency website security guidance
IPA and NPA reference frame

Two foundation documents from IPA

IPA publishes two documents that most Japanese web agencies know. The first is “How to Create a Secure Website” (安全なウェブサイトの作り方), whose Japanese edition is in its seventh revision. It covers 11 vulnerability types, among them SQL injection, OS command injection, cross-site scripting, CSRF, weak session management, clickjacking and missing access control, and for each it gives a root-cause fix plus supplementary measures to limit damage.

The second is “20 Checkpoints for Secure Website Operation” (安全なウェブサイトの運用管理に向けての20ヶ条), split into web application (8 items), web server (6), network (4) and other (2). Items of particular interest to site owners include: not leaving non-public files under the web directory, patching vulnerabilities in CMS and frameworks, retaining and reviewing logs, HTTPS, protection against unauthorised login, removing unneeded services and accounts, avoiding guessable passwords, detecting or blocking malicious traffic with IDS, IPS or WAF, understanding your scope of responsibility when using cloud or hosting services, and regular security testing and audits. IPA asks for checks whenever an existing page is changed or a new page is published.

For a small team, use the 20 items as an internal checklist and as a contract annex: mark which items you handle and which belong to the web agency or hosting provider, and write it down.

WordPress: hardening from the ground up

WordPress powers a large share of corporate sites, so attackers focus on flaws in the core, themes and plugins. For Japan website security, WordPress is the case that deserves the most attention. Follow these principles:

  • Update core, plugins, themes and the PHP version on a fixed schedule, testing on staging before production.
  • Remove unused plugins and themes, not just deactivate them. Every extra component widens the attack surface. Install only plugins that are maintained by an identifiable developer.
  • Protect admin login: two-factor authentication, limits on failed attempts, IP restrictions or a changed login path where suitable, and one named account per person instead of a shared one.
  • Least privilege: editors do not need administrator rights; disable the theme and plugin file editor in the dashboard.
  • Protect configuration files: keep wp-config.php non-public, set secret keys uniquely, and keep file and directory permissions tight.
  • Turn off unused features such as XML-RPC or user enumeration through the REST API if the site does not need them.
  • HTTPS everywhere with automatic certificate renewal; do not email sensitive information, but show it on an encrypted page, as the NPA advises.

If the site is custom built, choosing a team for website design and development that has a clear update and testing routine will greatly reduce later risk.

Patching and WAF: two complementary layers

Patching is the root measure and a web application firewall (WAF) is an extra layer. The NPA lists both among its preventive measures: keep the web server’s operating system and software up to date, and deploy a WAF or equivalent product. A realistic patching process runs like this:

  1. Build an asset inventory: domains, servers, CMS version, plugins, themes and JavaScript libraries.
  2. Follow vulnerability notices, including IPA and JPCERT/CC information and plugin developers’ own channels.
  3. Assess impact and set deadlines, with actively exploited flaws first.
  4. Test on staging, back up, then update production.
  5. Record the result and re-test key functions such as contact and payment forms.

A WAF helps when a patch is not yet applied or does not yet exist, but it does not replace patching. Choose a cloud or hosting-integrated WAF, start in detection mode to avoid blocking real customers, and move to blocking after tuning the rules.

Backups and early detection

In Japan website security, backups are the last safety net. The NPA recommends regular backups and comparing them with legitimate content to find unauthorised files. A backup is only worth something if a restore has been tested, it is stored apart from the main server, and several generations exist so you can go back to before the intrusion. Back up both files and the database and write down the frequency and retention.

For detection the NPA suggests concrete checks: look for suspicious JavaScript in payment and input forms, check for wrong URLs or unexpected screens, review web server, FTP and SSH logs, and search with site:yourdomain to spot unfamiliar pages created by an intruder. Add file-integrity monitoring, alerts for new administrator accounts and a regular look at Google Search Console.

Checklist of hardening measures for a WordPress website
WordPress hardening

Contracts with web vendors and hosting providers

Outsourcing website design, operation and maintenance is common in Japan, so the boundary of responsibility must be written down. These clauses belong in development and maintenance contracts, in the spirit of IPA’s 20 items, which include understanding your responsibility scope when using cloud or hosting services:

  • Maintenance scope: who updates core, plugins, themes and PHP; how often; the deadline for critical vulnerabilities.
  • Secure development standard: compliance with guides such as IPA’s “How to Create a Secure Website” and testing before handover.
  • Account management: a list of people with access, two-factor authentication, and revocation when the contract ends or staff change.
  • Logs and backups: which logs are kept, for how long, how often backups run, where they are stored and how restores work.
  • Incident notification: time limit for informing the client, information to provide, and duties for investigation and cooperation with authorities.
  • Subcontracting: only with written consent and with the same security obligations.
  • Ownership and handover: source code, domain, hosting account and certificates in the client’s name, with handover documentation.
  • Liability and insurance: liability caps and professional or cyber insurance where relevant.

For sites with forms that collect personal data, also check obligations under the Act on the Protection of Personal Information (APPI), especially when the server or operator is abroad. A bundled website maintenance and security service usually combines these elements in one contract with periodic reports.

Third-party scripts, hosting and the supply chain

Because IPA ranks supply-chain attacks second, a site audit should include everything the page loads from elsewhere: analytics tags, chat widgets, fonts, payment scripts and advertising code. A compromised third-party script runs with the same privileges as your own code. Keep a list of every external script, remove those no longer needed, load only from providers you have a contract with, and review the list whenever marketing adds a new tag.

The same thinking applies to infrastructure. Check how your hosting provider isolates customers, whether it offers account-level two-factor authentication, how long it keeps server logs and what its incident notification promise is. Domain registrar accounts deserve the same protection as the site itself, since a stolen registrar login lets an attacker repoint your domain and intercept mail as well as web traffic. A provider of domain and hosting services should be able to answer these points in writing.

Finally, keep staging and test sites out of search engines and behind authentication. Forgotten test copies running old software are a frequent, avoidable entry point, and IPA’s checklist explicitly lists unneeded pages and sites left online as an item to review.

When a site has been tampered with: five steps from the NPA

The NPA sets out steps after an incident. One: investigate the affected server and network devices, and also check unaffected servers, devices and PCs for other malware or hacking tools, preserving logs as carefully as backups. Two: apply updates to the OS, software, network devices, web applications and CMS. Three: promptly change passwords on any PCs, servers or devices the attacker may have reached. Four: stop the service immediately to preserve evidence, and save or print the admin panel and database access logs. Five: report to or consult the nearest police station or cybercrime consultation desk, bringing access logs and arranging the date and materials in advance.

In practice, prepare an incident playbook beforehand with an internal contact list, the person authorised to take the site offline, and the details of your hosting provider and web agency. If personal data may have leaked, consider reporting to the Personal Information Protection Commission and notifying affected people.

Five post-incident steps for a tampered website following NPA guidance
Five steps after tampering

Japan website security checklist for business owners

  • An asset inventory covering domains, hosting, CMS, plugins, themes and an owner for each.
  • Scheduled updates tested on staging, with deadlines for critical flaws stated in the contract.
  • Two-factor authentication for admins, named accounts, no shared passwords.
  • HTTPS site-wide, a working WAF, and web, FTP and SSH logs retained and reviewed.
  • Separate, multi-generation backups with a tested restore.
  • Regular checks with site:, Search Console and file monitoring.
  • A contract that covers maintenance, incident reporting, subcontracting, handover and liability.
  • An incident playbook, contact list and a named person who can take the site offline.

FAQ

Does a brochure site with no online sales need security work?

Yes. Attackers do not need your data to abuse a website: they can use it to spread malware, insert spam links or attack visitors. Sites that hold personal data need especially strict patching, but the basics apply to every site.

Is installing a WordPress security plugin enough?

No. A security plugin helps in some areas but does not replace updates, account management, backups and monitoring. Clear processes and responsibilities matter more than any single tool.

How often should we back up?

It depends on how often content changes. News or ordering sites should back up daily; a rarely changed brochure site can do weekly, plus a backup before every major update. What matters is testing restores regularly.

What is the first thing to do if we suspect tampering?

Following the NPA guidance, stop the service to preserve evidence, save the logs, change the relevant passwords and consult the police. Do not simply delete the injected content and switch the site back on, because the root cause may still be there.

Who is responsible if our web agency fails to patch a plugin?

That depends entirely on what the contract says, which is why scope of maintenance, deadlines for critical flaws and incident notification should be written down. Without those clauses, responsibility is often unclear and both sides blame each other after an incident. Ask a lawyer to review the final text.

Sources: NPA – Website tampering countermeasures, IPA – 20 Checkpoints for Secure Website Operation, IPA – How to Create a Secure Website, IPA – 10 Major Security Threats 2026

Taking on new projects

Let’s build
what’s next.

You have the idea. We have the technology to make it real.

Phone / WhatsApp
096.279.2345
You need

We only use this to get back to you.

Chat on WhatsApp Call +84 96 279 2345