# Responsible Disclosure Policy

This page serves as the unified communication hub for **Somnia developers, contributors, and security researchers**. It combines two essential areas:

* **Developer Contact and Support:** How to reach the Somnia DevRel and technical teams.
* **Responsible Disclosure:** How to report security vulnerabilities, contribute improvements, and participate in the future bounty ecosystem.

***

## Developer Contact and Support

The Somnia developer community operates across several communication channels to provide quick technical assistance, feedback exchange, and support for integrations or bug reports.

#### Active Support Channels

* **Telegram (DevRel Team):**
  * [@emreyeth](https://t.me/emreyeth)
  * [@PromiseGameFi](https://t.me/PromiseGameFi)
  * [@emmaodia](https://t.me/emmaodia)
* **Discord:**
  * Join the official [Somnia ](https://discord.gg/somnia)server.
  * For technical questions, use the `#dev-support` or `#dev-chat` channel.
  * To report issues privately, open a **support ticket** under “Bug Reports”
* **Email:**\
  Send an email to [**developers@somnia.network**](mailto:developers@somnia.network) for official inquiries, integration help, or collaboration requests.

{% hint style="info" %}
Response time varies based on the request type, but DevRel aims to reply within **24 hours**.
{% endhint %}

#### Types of Support Requests

| Category                | Description                                   | Preferred Channel      |
| ----------------------- | --------------------------------------------- | ---------------------- |
| **Integration Help**    | RPC, SDK, and Smart Contract setup assistance | Discord / Email        |
| **Docs Contribution**   | Reporting outdated or missing developer docs  | GitHub PR / Email      |
| **Bug Report**          | Contract, SDK, or explorer bugs               | Discord Ticket / Email |
| **Partnership Inquiry** | Technical collaborations or integration ideas | Email                  |

***

## Responsible Disclosure

Somnia encourages ethical researchers and contributors to responsibly disclose vulnerabilities or security risks found in the ecosystem. Even though a formal bounty system is not yet live, this framework ensures findings are handled safely and recognized appropriately.

***

## Technical Disclosure Guidelines

All vulnerability reports should follow a clear, reproducible structure for fast triage and validation.

#### **Required Report Template**

{% code title="Vulnerability Report Template" %}

```markdown
# Vulnerability Report — Somnia Network

## Summary
Brief description of the issue.

## Impact
Potential risks if exploited.

## Steps to Reproduce
1. Step-by-step actions.
2. Include RPC endpoint, contract address, and network (Mainnet or Shannon Testnet).

## Expected vs Actual Behavior
Explain the difference in observed vs intended behavior.

## Proof of Concept (PoC)
Include transaction hash, minimal code snippet, or call trace.

## Suggested Fix (Optional)
Provide insights or improvement recommendations.

## Contact
Telegram / Discord handle / Email.
```

{% endcode %}

<details>

<summary>Example</summary>

{% code title="Example Vulnerability Report" %}

```markdown
# Vulnerability Report — Somnia Bridge Contract

## Summary
Bridge contract mishandles token decimals in cross-chain conversion.

## Impact
Potential underflow on tokens with decimals < 18.

## Steps to Reproduce
1. Deploy ERC20 with 6 decimals.
2. Execute `bridgeToSomnia(token, 1000000)`.
3. Observe incorrect amount on destination.

## Expected vs Actual
Expected: normalized 1 token.
Actual: 0.000001 tokens received.

## Suggested Fix
Add decimal normalization logic.

## Proof of Concept
Testnet Tx: `0x92b...4fe1`

## Contact
@emreyeth (Telegram)
```

{% endcode %}

</details>

***

## Contribution Pathways for Developers

Somnia invites developers to contribute beyond bug reporting. Follow these pathways to get involved.

{% stepper %}
{% step %}
**Documentation Contributions**

* Suggest edits or add missing examples in tutorials.
* Create new pages under categories like *Debugging*, *Testing*, or *Security*.
  {% endstep %}

{% step %}
**Testing Best Practices**

* Always test exploits or stress scenarios on **Shannon Testnet**, not on Mainnet.
* Use local forks with Hardhat or Foundry for reproducibility.
  {% endstep %}
  {% endstepper %}

***

## Somnia Report Lifecycle

{% stepper %}
{% step %}
**Submission**

Researcher submits a report via email, Discord, or Telegram.
{% endstep %}

{% step %}
**Verification**

Somnia DevRel reproduces the issue and collects context.
{% endstep %}

{% step %}
**Escalation**

Valid issues are passed to Somnia Core Security.
{% endstep %}

{% step %}
**Patch Deployment**

Fix rolled out to Shannon Testnet, then Mainnet. (Based on where is it.)
{% endstep %}

{% step %}
**Acknowledgment**

Researcher credited publicly in Somnia Docs and Discord.
{% endstep %}
{% endstepper %}

For multi-party vulnerabilities (e.g., involving validators or external oracles), coordinated disclosure will be handled privately.

***

## Ethical Rules

{% hint style="warning" %}

* Do **not** exploit vulnerabilities on Mainnet.
* Do **not** disrupt network services or RPC endpoints.
* Do **not** engage in social engineering or phishing.
* Always disclose vulnerabilities privately and responsibly.

Researchers acting in good faith will **not face any penalties** and will be publicly recognized for their ethical contributions.
{% endhint %}

***

## Summary

* Use **Telegram, Discord, or Email** to reach Somnia’s DevRel and security teams.
* Follow the **Responsible Disclosure template** for structured vulnerability reports.
* Contribute improvements via **Pull Requests** or documentation updates.
* Future bounty and recognition programs will expand as Somnia Mainnet evolves.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.somnia.network/developer/security/responsible-disclosure-policy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
