Skip to content

Commit

Permalink
Add some more dangerous file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Dec 23, 2024
1 parent 278e3a2 commit df0e93c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/components/tw-security-manager-modal/download.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const DEFINITELY_EXECUTABLE = [
'appx',
'appxbundle',
'reg',
'iso',

// Mac executable formats
'dmg',
Expand All @@ -31,6 +32,12 @@ const DEFINITELY_EXECUTABLE = [
// Unix executable formats
'so',
'a',
'run',
'appimage',
'deb',
'rpm',
'snap',
'flatpakref',

// Cross-platform executable formats
'jar',
Expand All @@ -42,15 +49,33 @@ const DEFINITELY_EXECUTABLE = [
// Shortcuts
'url',
'webloc',
'inetloc',
'lnk',

// Windows scripting languages
'bat',
'cmd',
'ps1',
'psm1',
'asp',
'vbs',
'vbe',
'wsf',
'wsc',
'ahk',

// Microsoft Office macros
'docm',
'dotm',
'xlm',
'xlsm',
'xltm',
'xla',
'xlam',
'pptm',
'potm',
'ppsm',
'sldm',

// Unix scripting languages
'sh',
Expand Down

0 comments on commit df0e93c

Please sign in to comment.