You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+82-86Lines changed: 82 additions & 86 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,53 +2,37 @@
2
2
3
3
[](https://mseep.ai/app/1a935343-666d-457a-b210-2e0d27e9ef81)
4
4
5
-
A customizable `.github/copilot-instructions.md` file that guides **GitHub Copilot** toward **secure coding defaults** across **Java, Node.js, and C#**.
5
+
A comprehensive toolkit to guide **GitHub Copilot** toward **secure coding practices**. This project includes customizable instructions and security-focused prompts to help development teams identify and mitigate security risks effectively.
6
6
7
-
Designed for security-conscious development teams, this config helps Copilot suggest safer code patterns, avoid common vulnerabilities, and reinforce good practices — without slowing down your workflow.
7
+
Designed for security-conscious teams, this configuration ensures Copilot suggests safer code patterns, avoids common vulnerabilities, and reinforces best practices — all without disrupting your workflow.
8
8
9
9
---
10
10
11
11
## 🔐 What's Inside
12
12
13
-
This Copilot configuration includes:
13
+
This project offers:
14
14
15
-
-**Secure-by-default guidance** for all languages (input validation, secret handling, safe logging)
15
+
-**Secure-by-default guidance** for all languages (e.g., input validation, secret handling, safe logging).
16
16
-**Language-specific secure patterns**:
17
17
- ☕ Java
18
18
- 🟩 Node.js
19
19
- 🟦 C#
20
20
- 🐍 Python
21
-
-**"Do Not Suggest" lists** to block risky Copilot completions (e.g. `eval`, inline SQL, insecure deserialization)
-**Mentorship-style tips** to help newer engineers build secure coding habits.
24
+
-**An MCP server**for seamless integration of these prompts into other projects.
25
25
26
26
---
27
27
28
-
## 🧠 Using Prompts for Code Reviews (Copilot Chat)
29
-
30
-
If your organization has [Copilot Prompt Customization](https://code.visualstudio.com/docs/copilot/copilot-customization#_prompt-files-experimental) enabled, you can guide Copilot Chat to run secure code audits using the included prompt files.
31
-
32
-
1. Open any file in your IDE (e.g., `tests/secret-hardcode.js`)
33
-
2. Open the Copilot Chat sidebar
34
-
3. Type:
35
-
36
-
```bash
37
-
@prompt .github/prompts/check-for-secrets.md
38
-
```
39
-
40
-
Copilot will scan the file using the selected prompt and return flagged issues, reasoning, and remediation tips.
41
-
42
-
> ℹ️ Note: If your org disables `chat.promptFiles`, you can manually paste the prompt contents into Copilot Chat or use them in PRs, checklists, and reviews.
43
-
44
28
## 🗂️ Prompt Catalogue
45
29
46
-
Explore the available prompt files and their intended purpose:
30
+
Explore the available prompts and their intended use cases:
47
31
48
32
| Prompt | Description | Intended Use |
49
33
| --- | --- | --- |
50
34
|[assess-logging.prompt.md](prompts/assess-logging.prompt.md)| Identify unsafe logging and exposure of sensitive data. | Audit log output for leaks and recommend safer patterns. |
51
-
|[business-logic-review.prompt.md](prompts/business-logic-review.prompt.md)| Analyze overall business logic flow and decision making. | Map application behaviour and critique critical logic paths. |
35
+
|[business-logic-review.prompt.md](prompts/business-logic-review.prompt.md)| Analyze overall business logic flow and decision making. | Map application behavior and critique critical logic paths. |
52
36
|[check-access-controls.prompt.md](prompts/check-access-controls.prompt.md)| Audit authorization and access control weaknesses. | Ensure RBAC/ABAC enforcement and consistent permission checks. |
53
37
|[check-for-secrets.prompt.md](prompts/check-for-secrets.prompt.md)| Detect hardcoded secrets and credentials. | Locate embedded keys or tokens and suggest secure storage. |
54
38
|[check-for-unvalidated-genai-acceptances.prompt.md](prompts/check-for-unvalidated-genai-acceptances.prompt.md)| Find unvalidated AI-generated code or hallucinated assets. | Verify that AI suggestions are real, tested, and documented. |
@@ -57,83 +41,93 @@ Explore the available prompt files and their intended purpose:
57
41
|[secure-code-review.prompt.md](prompts/secure-code-review.prompt.md)| Perform a comprehensive security review of the codebase. | Conduct an end-to-end audit for security issues. |
58
42
|[validate-input-handling.prompt.md](prompts/validate-input-handling.prompt.md)| Check for missing or unsafe input validation. | Evaluate request handling for validation and sanitization gaps. |
59
43
60
-
## 🧪 Testing the Prompts
61
-
62
-
The `tests/` folder contains small, focused files designed to trigger specific security prompts:
1. Copy the `copilot-instructions.md` file into your repo under:
86
51
`.github/copilot-instructions.md`
87
52
88
53
2. Drop the prompts you want into:
89
54
`.github/prompts/`
90
55
91
-
3.Use prompt-driven reviews in Copilot Chat during coding, PRs, or audits
56
+
3.Open the prompt you wish to run within your IDE
92
57
93
-
### Leveraging the included MCP Server
58
+
4. Click the `Run Prompt` button to the top-right of the file
94
59
95
-
The MCP server is designed to simplify the integration of secure coding prompts into your development workflow. Follow these steps to ensure a smooth experience:
0 commit comments