Extension:MediaModeration

From Linux Web Expert

MediaWiki extensions manual
MediaModeration
Release status: stable
Implementation Database
Description Service for detecting possible child exploitation content
Author(s) Trust and Safety Product Team
Maintainer(s) Trust and Safety Product Team
Latest version 2.0.0
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki >= 1.42
PHP 7.4+
Database changes Yes
Composer mediawiki/media-moderation
Tables mediamoderation_scan
License GNU General Public License 2.0 or later
Download
README.md
  • $wgMediaModerationPhotoDNAUrl
  • $wgMediaModerationPhotoDNAMockServiceFiles
  • $wgMediaModerationThumbnailWidth
  • $wgMediaModerationAddToScanTableOnUpload
  • $wgMediaModerationRecipientList
  • $wgMediaModerationPhotoDNASubscriptionKey
  • $wgMediaModerationDeveloperMode
  • $wgMediaModerationFrom
  • $wgMediaModerationHttpProxy
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the MediaModeration extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The MediaModeration extension is for detecting possible child exploitation content.

See the MediaModeration Wikitech entry for notes on how this extension works in Wikimedia production.

Purpose

The purpose of the extension is to improve the Foundation’s existing workflows for child protection content.

Prior to deployment of this extension, when the Foundation receives a report of images that depict child sexual abuse, the images are deleted from the projects and reported to law enforcement according to legal requirements. This setup requires volunteers, who unlike staff have no professional training or mental health support, to initially deal with this very emotionally taxing content.

This extension aims to protect the community from being exposed to such content in nearly all cases and get it off the platform a lot faster. It would check images against a database of hashed, known images of child sexual abuse and notify Foundation staff of hash matches to allow Foundation staff to remove the images and report their existence to law enforcement.

This extension does not automatically remove any content without human review by Foundation staff.

Functionality

MediaModeration provides the following:

  • Check uploaded image against PhotoDNA
  • Send email to pre-configured recipients if suspicious content found

Pre-requisites

Before installation, the PhotoDNA subscription key should be obtained from Microsoft.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/MediaModeration</tvar>|Download]] and move the extracted <tvar name=name>MediaModeration</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MediaModeration
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'MediaModeration' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>