Skip to content

Commit 6bc10c4

Browse files
authored
feat: added security command (#512)
* added security command * Updated Verbiage after feedback to be more actionable
1 parent 0533e01 commit 6bc10c4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/features/commands.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,35 @@ Have a look at these resources on how to ask good questions:
391391
- [Coding Killed the Cat: "How to Ask for Programming Help"](http://wp.me/p2oIwo-26)
392392
- [Stack Overflow: "How do I ask a good question?"](https://stackoverflow.com/help/how-to-ask)
393393
- [Eric S. Raymond; "How To Ask Questions The Smart Way"](https://git.io/JKscV)
394+
`,
395+
color: EMBED_COLOR,
396+
},
397+
],
398+
});
399+
},
400+
},
401+
{
402+
words: [`!security`],
403+
help: `general information around managing security for a web application.`,
404+
category: "Reactiflux",
405+
handleMessage: (msg) => {
406+
msg.channel.send({
407+
embeds: [
408+
{
409+
title: "Security Tips",
410+
type: EmbedType.Rich,
411+
description: `Managing security in a web application requires a proactive approach.
412+
413+
Some points to consider:
414+
415+
- Don't use create-react-app it is [no longer supported](https://react.dev/blog/2025/02/14/sunsetting-create-react-app).
416+
- Set up automated alerts via a service like [dependabot](https://docs.github.com/en/code-security/getting-started/dependabot-quickstart-guide) to be notified of new disclosures.
417+
- Review packages either by inspecting the code or using a service like [Snyk](https://security.snyk.io/vuln/npm).
418+
- Apply [secure coding principles and practices](https://owasp.org/www-project-secure-coding-practices-quick-reference-guide/stable-en/02-checklist/05-checklist.html) - there are [free for open source tool](https://owasp.org/www-community/Free_for_Open_Source_Application_Security_Tools) like [Sonar Qube](https://www.sonarsource.com/open-source-editions/sonarqube-community-edition/) which help find common vulnerabilities like SQL injection, cross-site scripting (XSS), path traversal, and insecure configurations.
419+
- Proactively keep your technology up to date – (everything not just packages).
420+
- Keep your identity safe online, don't reuse passwords, enable multi-factor authentication and use a password manager service.
421+
422+
If you are ever unsure just ask! Better to be safe then sorry.
394423
`,
395424
color: EMBED_COLOR,
396425
},

0 commit comments

Comments
 (0)