Skip to content

Commit 69bc33b

Browse files
jinhanjinhan
authored andcommitted
add button to SecML and create a page for ethical disclaimer
1 parent 67989ec commit 69bc33b

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React,{Component} from 'react'
22
import Attacktree from "./pages/attacktree/Attacktree";
33
import Home from "./pages/home/Home"
4+
import EthicalDisclaimer from "./pages/ethicaldisclaimer/EthicalDisclaimer"
45
import "./app.css"
56
import { Route, Routes} from "react-router-dom";
67
import Attackvectors from './pages/attackvectors/Attackvectors';
@@ -17,6 +18,7 @@ class App extends Component {
1718
<div className="App">
1819
<Routes>
1920
<Route exact path="/" element={<Home/>}/>
21+
<Route exact path="/ethical_disclaimer" element={<EthicalDisclaimer/>}/>
2022
<Route path="/tree/:id" element={<Attacktree />}/>
2123
{/* <Route exact path="/attackvectors" element={<Attackvectors/>}/>
2224
<Route exact path="/safeguards" element={<Safeguards/>}/>

src/components/taxonomy/Taxonomy.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ function Taxonomy({ data, type }) {
10721072
<Tabs value={value} onChange={handleChange} aria-label="basic tabs example">
10731073
<Tab label="Searchbars" {...a11yProps(0)} />
10741074
<Tab label="Legend" {...a11yProps(1)} />
1075-
1075+
{type === "model" ? <a href="https://github.com/pralab/secml" target="_blank"><Tab label="SecML" /></a> : null}
10761076
</Tabs>
10771077
</Box>
10781078
<TabPanel value={value} index={0}>
@@ -1082,7 +1082,6 @@ function Taxonomy({ data, type }) {
10821082
<TabPanel value={value} index={1}>
10831083
<Legend attacktype={type}></Legend>
10841084
</TabPanel>
1085-
10861085
</Box>
10871086

10881087
<div className="taxonomyWrapper">
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React, { Component } from 'react'
2+
3+
class EthicalDisclaimer extends Component {
4+
5+
constructor(props) {
6+
super(props);
7+
}
8+
9+
render() {
10+
return (
11+
<div>
12+
The tools, scripts, techniques, and information provided in this repository are strictly intended for educational purposes and lawful security testing only. Their use is designed to enhance cybersecurity awareness, strengthen system defenses, and promote ethical security practices.
13+
Unauthorized use of these resources for malicious activities-including, but not limited to, unauthorized access, exploitation, or causing harm to systems-is strictly prohibited. Such activities may violate local, national, and international laws, including, but not limited to, the European Union's General Data Protection Regulation (GDPR) and the Computer Misuse Act 1990.
14+
The developers and distributors of this repository disclaim any responsibility for misuse or damages arising from improper or illegal use of the tools or information provided. Users are fully responsible for ensuring their activities comply with applicable laws and for obtaining explicit authorization before testing or interacting with any systems. Users unsure whether their activities comply with applicable laws should consult a qualified legal professional before proceeding.
15+
</div>
16+
)
17+
}
18+
}
19+
20+
export default EthicalDisclaimer;

src/pages/home/Home.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,11 @@ class Home extends Component {
228228
<p style={{color:"white",fontSize:"12px", fontWeight:"light", textAlign:"right", marginRight:"4%", marginBottom:".4%"}}>
229229
This project is funded by the European Union's Horizon Europe research and innovation programme under the project Sec4AI4Sec, grant agreement No 101120393.
230230
</p>
231+
<p style={{color:"white",fontSize:"12px", fontWeight:"light", textAlign:"right", marginRight:"4%", marginBottom:".4%"}}>
232+
<Link style={{ color: 'white', textDecoration: 'underline' }} to="/ethical_disclaimer">
233+
Ethical disclaimer
234+
</Link>
235+
</p>
231236
</Grid>
232237
</Grid>
233238
</Box>

0 commit comments

Comments
 (0)