Introduction¶
When entrusting Discord permissions and Webhook exposure checks to agents, a common concern is: will the tools inadvertently change channels, roles, or Webhooks? Managers usually manually verify using the Discord client or third-party dashboards before integrating MCP tools into Harness. However, if the plugin has write permissions by default, a single accidental trigger could lead to an incident.
DeepSeek Harness (DSH) extends capabilities through plugins; the community directory dsh-plugin-role-auditor on SkillHub is categorized under admin-security. Below is an introduction to dsh-plugin-role-auditor, released by the maintainer thegabopacheco-sudo: a Discord permission audit tool that emphasizes detecting high-risk roles, exposed Webhooks, and risky related configurations, and does not modify any objects on the server.
What is this¶
dsh-plugin-role-auditor (package name dsh-plugin-role-auditor, version 0.1.0 in current documentation) is a Discord role and configuration audit plugin for DeepSeek Harness. The README summarizes it as: detecting roles with dangerous permissions, exposed Webhooks, and risky related configurations, without altering the Discord-side state at any point.
The plugin is integrated as an MCP service (entry point is dist/server.mjs), consistent with DSH’s “everything is a plugin” ecosystem; the directory and GitHub are maintained by the community and have no official affiliation with DeepSeek / Hyperscience.
Core Features (as described in README and package)¶
The documented capabilities and boundaries are as follows:
- Dangerous Permission Roles: Identifying Discord roles carrying high-risk permissions (specific judgment rules can be found in the repository document
docs/COMO-FUNCIONA.md, which can be viewed in the plugin directory after installation). - Exposed Webhooks: Detecting Webhook configurations in an exposed or improperly exposed state.
- Risky Configurations: Performing audit-style output for configurations related to permissions and integrations.
- No Writing by Default: The product design is for auditing rather than Remediation; consistent with the read-only default policy mentioned in the “Security Model” below.
For a more detailed list of tools and invocation methods, refer to docs/COMO-FUNCIONA.md in the repository; this article does not expand on command examples that did not appear in the scraped README.
Installation and Activation¶
Either method works; the installation commands must match the original README.
Graphical Path: In DSH, open Settings → Plugins, install github:thegabopacheco-sudo/dsh-plugin-role-auditor, and follow the prompts to allow the installation script (the postinstall will execute node scripts/postinstall.mjs).
CLI (you need to specify the profile currently in use):
dsh plugin --profile <perfil> add github:thegabopacheco-sudo/dsh-plugin-role-auditor
Runtime environment: package.json requires Node >=20; license is MIT.
It is recommended to browse the GitHub repository source code and LICENSE before installation to confirm it aligns with your team’s security policy. The plugin runs under the current dsh process permissions, equivalent to the resources and network capabilities that Harness can reach on your local machine/under the current profile.
Security Model and Audit Persistence¶
The security-related conventions in the README can be directly used for pre-production configuration checks:
- Read-only by default; if a write operation exists, it will only be executed after
confirm:trueand explicit user confirmation. - Setting the environment variable
DSH_ROLE_AUDITOR_MODE=read-onlycan disable writable actions and force read-only mode. - The whitelist and audit records are located at
<DSH_HOME>\cache\role-auditor\audit.jsonl(whereDSH_HOMEin the path is your DSH home directory;audit.jsonlis an audit log appended line by line, facilitating post-event tracing).
Before connecting Harness to a production Discord Bot Token or high-privilege account, you can first enable read-only to confirm that the audit output meets expectations before considering whether to allow steps with confirmation.
Typical Usage Instructions¶
The scraped README does not provide copyable conversation examples or a list of MCP tool names, only pointing to docs/COMO-FUNCIONA.md. In practice, it is recommended to:
- Complete the installation and load the plugin list for this profile in DSH.
- Open
docs/COMO-FUNCIONA.mdin the plugin installation directory or a cloned repository copy, and initiate an audit according to the tools and parameters described in the documentation. - View the structured results returned by the terminal or Harness, and cross-reference them with the records in
audit.jsonl.
Suitable Scenarios and Notes¶
Suitable For: Self-checks for admin-security by Discord communities or product teams—regularly tallying dangerous permission bits of @everyone and custom roles, the Webhook exposure surface, and allowing agents to assist in read-only analysis without granting the Bot write permissions.
Notes:
- The plugin cannot replace Discord’s official audit logs and manual change processes; it is an auxiliary audit layer provided on the Harness side.
- Even without write confirmation, you should assume that any third-party plugin requires source code review; although this plugin claims to be read-only by default, the installation script and
cordis.patch.ymlshould still be included in your supply chain checks. - Metrics like stars and user scale change over time; use the current README and issues in the repository as the standard for selection.
Conclusion¶
dsh-plugin-role-auditor consolidates “check permissions, check Webhooks, check risky configurations” into a DSH plugin, and reduces the probability of accidentally modifying Discord by using read-only defaults, confirm:true, and DSH_ROLE_AUDITOR_MODE=read-only. When you need to install or contribute code, you can visit the directory page SkillHub: dsh-plugin-role-auditor and the source code repository github.com/thegabopacheco-sudo/dsh-plugin-role-auditor.