Skip to content

Commit

Permalink
[frontend/backend] wip
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Dec 10, 2024
1 parent d4fe78c commit 222c28a
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 12 deletions.
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2635,6 +2635,7 @@
"team": "Organisiertes Team",
"Technical": "Technisch",
"Technical (payloads)": "Technisch (Nutzlasten)",
"Technical (payloads) require attack patterns in this entity.": "Technische (Nutzlasten) erfordern Angriffsmuster in dieser Einheit.",
"Technical date": "Technisches Datum",
"Technical elements (indicators & observables)": "Technische Elemente (Indikatoren & Beobachtungswerte)",
"Techniques": "Techniken",
Expand Down Expand Up @@ -2662,6 +2663,7 @@
"The dashboard has been duplicated. You can manage it": "Das Dashboard wurde dupliziert. Sie können es verwalten",
"the dedicated page": "der entsprechenden Seite",
"The following groups require your attention:": "Die folgenden Gruppen erfordern Ihre Aufmerksamkeit:",
"The following TTPs are not covered in the Openbas catalog : ": "Die folgenden TTPs sind nicht im Openbas-Katalog enthalten:",
"The importation of the file has been started": "Das Importieren der Datei wurde gestartet",
"The main object and the ... relationships/references linked to it will be deleted permanently.": "Das Hauptobjekt und die mit ihm verknüpften {count} Beziehungen/Referenzen werden dauerhaft gelöscht.",
"The main object and the ... relationships/references linked to it will be restored.": "Das Hauptobjekt und die mit ihm verknüpften {count} Beziehungen/Referenzen werden wiederhergestellt.",
Expand Down
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2635,6 +2635,7 @@
"team": "Organized team",
"Technical": "Technical",
"Technical (payloads)": "Technical (payloads)",
"Technical (payloads) require attack patterns in this entity.": "Technical (payloads) require attack patterns in this entity.",
"Technical date": "Technical date",
"Technical elements (indicators & observables)": "Technical elements (indicators & observables)",
"Techniques": "Techniques",
Expand Down Expand Up @@ -2662,6 +2663,7 @@
"The dashboard has been duplicated. You can manage it": "The dashboard has been duplicated. You can manage it",
"the dedicated page": "the dedicated page",
"The following groups require your attention:": "The following groups require your attention:",
"The following TTPs are not covered in the Openbas catalog : ": "The following TTPs are not covered in the Openbas catalog : ",
"The importation of the file has been started": "The importation of the file has been started",
"The main object and the ... relationships/references linked to it will be deleted permanently.": "The main object and the {count} relationships/references linked to it will be deleted permanently.",
"The main object and the ... relationships/references linked to it will be restored.": "The main object and the {count} relationships/references linked to it will be restored.",
Expand Down
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -2635,6 +2635,7 @@
"team": "Equipo organizado",
"Technical": "Técnico",
"Technical (payloads)": "Técnica (cargas útiles)",
"Technical (payloads) require attack patterns in this entity.": "Técnica (cargas útiles) requieren patrones de ataque en esta entidad.",
"Technical date": "Fecha técnica",
"Technical elements (indicators & observables)": "Elementos técnicos (indicadores y observables)",
"Techniques": "Técnicas",
Expand Down Expand Up @@ -2662,6 +2663,7 @@
"The dashboard has been duplicated. You can manage it": "El tablero ha sido duplicado. puedes gestionarlo",
"the dedicated page": "la página dedicada",
"The following groups require your attention:": "Los siguientes grupos requieren su atención:",
"The following TTPs are not covered in the Openbas catalog : ": "Los siguientes TTPs no están cubiertos en el catálogo Openbas :",
"The importation of the file has been started": "La importación del fichero se ha iniciado",
"The main object and the ... relationships/references linked to it will be deleted permanently.": "El objeto principal además de sus {count} relaciones/referencias serán eliminados definitivamente.",
"The main object and the ... relationships/references linked to it will be restored.": "Se restaurará el objeto principal además de sus {count} relaciones/referencias.",
Expand Down
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2635,6 +2635,7 @@
"team": "Equipe organisée",
"Technical": "Technique",
"Technical (payloads)": "Technique (charges utiles)",
"Technical (payloads) require attack patterns in this entity.": "Les données techniques (charges utiles) requièrent des schémas d'attaque dans cette entité.",
"Technical date": "Date technique",
"Technical elements (indicators & observables)": "Eléments techniques (indicateurs & observables)",
"Techniques": "Techniques",
Expand Down Expand Up @@ -2662,6 +2663,7 @@
"The dashboard has been duplicated. You can manage it": "Le tableau de bord a été dupliqué. Vous pouvez l'administrer",
"the dedicated page": "la page dédiée",
"The following groups require your attention:": "Les groupes suivants requièrent votre attention :",
"The following TTPs are not covered in the Openbas catalog : ": "Les TTP suivantes ne sont pas couvertes par le catalogue Openbas :",
"The importation of the file has been started": "L'importation du fichier a été lancée",
"The main object and the ... relationships/references linked to it will be deleted permanently.": "L'objet principal ainsi que les {count} relations/références qui lui sont liées seront définitivement supprimés.",
"The main object and the ... relationships/references linked to it will be restored.": "L'objet principal ainsi que les {count} relations/références qui lui sont liées seront restaurés.",
Expand Down
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -2635,6 +2635,7 @@
"team": "組織的なチーム",
"Technical": "テクニカル",
"Technical (payloads)": "テクニカル(ペイロード)",
"Technical (payloads) require attack patterns in this entity.": "技術的(ペイロード)には、このエンティティの攻撃パターンが必要である。",
"Technical date": "技術的な日時",
"Technical elements (indicators & observables)": "技術的要素(インジケータと観測結果)",
"Techniques": "技術",
Expand Down Expand Up @@ -2662,6 +2663,7 @@
"The dashboard has been duplicated. You can manage it": "ダッシュボードが複製されました。管理できるよ",
"the dedicated page": "専用ページ",
"The following groups require your attention:": "以下のグループに注目してほしい:",
"The following TTPs are not covered in the Openbas catalog : ": "以下の TTP は Openbas のカタログではカバーされていません:",
"The importation of the file has been started": "ファイルのインポートが開始されました",
"The main object and the ... relationships/references linked to it will be deleted permanently.": "メインオブジェクトとそれにリンクされた {count} リレーションシップ/参照は永久に削除されます。",
"The main object and the ... relationships/references linked to it will be restored.": "メインオブジェクトとそれにリンクされた{count}リレーションシップ/参照がリストアされます。",
Expand Down
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -2635,6 +2635,7 @@
"team": "조직된 팀",
"Technical": "기술적",
"Technical (payloads)": "기술적 (페이로드)",
"Technical (payloads) require attack patterns in this entity.": "기술(페이로드)은 이 엔티티에 공격 패턴이 필요합니다.",
"Technical date": "기술적 날짜",
"Technical elements (indicators & observables)": "기술적 요소 (인디케이터 및 관찰 가능)",
"Techniques": "기법",
Expand Down Expand Up @@ -2662,6 +2663,7 @@
"The dashboard has been duplicated. You can manage it": "대시보드가 복제되었습니다. 관리할 수 있습니다",
"the dedicated page": "전용 페이지",
"The following groups require your attention:": "다음 그룹에 주의가 필요합니다:",
"The following TTPs are not covered in the Openbas catalog : ": "다음 TTP는 Openbas 카탈로그에서 다루지 않습니다:",
"The importation of the file has been started": "파일 가져오기가 시작되었습니다",
"The main object and the ... relationships/references linked to it will be deleted permanently.": "주 객체와 해당 객체와 연결된 {count} 관계/참조가 영구적으로 삭제됩니다.",
"The main object and the ... relationships/references linked to it will be restored.": "주 객체와 해당 객체와 연결된 {count} 관계/참조가 복원됩니다.",
Expand Down
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -2635,6 +2635,7 @@
"team": "团队",
"Technical": "技术",
"Technical (payloads)": "技术(有效载荷)",
"Technical (payloads) require attack patterns in this entity.": "技术(有效载荷)需要该实体中的攻击模式。",
"Technical date": "技术日期",
"Technical elements (indicators & observables)": "技术元素(攻击指标和可观测数据)",
"Techniques": "技术",
Expand Down Expand Up @@ -2662,6 +2663,7 @@
"The dashboard has been duplicated. You can manage it": "仪表板已被复制。你可以管理它",
"the dedicated page": "专用页面",
"The following groups require your attention:": "请您关注以下群体:",
"The following TTPs are not covered in the Openbas catalog : ": "Openbas 目录中不包括以下 TTP:",
"The importation of the file has been started": "已开始导入文件",
"The main object and the ... relationships/references linked to it will be deleted permanently.": "将永久删除主对象及其链接的 {count} 关系/引用。",
"The main object and the ... relationships/references linked to it will be restored.": "将还原主对象和与之关联的 {count} 关系/引用。",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import CircularProgress from '@mui/material/CircularProgress';
import Typography from '@mui/material/Typography';
import { Link } from 'react-router-dom';
import Alert from '@mui/material/Alert';
import EEChip from '@components/common/entreprise_edition/EEChip';
import { Autocomplete } from '@mui/material';
import EEChip from '../entreprise_edition/EEChip';
import Drawer from '../drawer/Drawer';
import Chart from '../charts/Chart';
import { useFormatter } from '../../../../components/i18n';
Expand Down Expand Up @@ -191,7 +191,7 @@ const StixCoreObjectSimulationResult = ({ id, type }) => {
const isSimulatedEmailsAvailable = enabled && configured && isEnterpriseEdition;
const [simulationType, setSimulationType] = useState(isSimulatedEmailsAvailable ? 'simulated' : 'technical');
const [platforms, setPlatforms] = useState(['Windows']);
const [architecture, setArchitecture] = useState('AMD64');
const [architecture, setArchitecture] = useState('x86_64');
const [selection, setSelection] = useState('random');
const [interval, setInterval] = useState(2);
const [isSubmitting, setIsSubmitting] = useState(false);
Expand Down Expand Up @@ -518,8 +518,8 @@ const StixCoreObjectSimulationResult = ({ id, type }) => {
required
disabled={!hasAttackPatterns}
>
<MenuItem value="AMD64">{'x86_64'}</MenuItem>
<MenuItem value="ARM64" >{'arm64'}</MenuItem>
<MenuItem value="x86_64">{'x86_64'}</MenuItem>
<MenuItem value="arm64" >{'arm64'}</MenuItem>
</Select>
</FormControl>
</>
Expand Down Expand Up @@ -605,7 +605,7 @@ const StixCoreObjectSimulationResult = ({ id, type }) => {
</Alert>
{result.attackPatternsWithoutInjectorContracts && result.attackPatternsWithoutInjectorContracts.trim() !== '' && (
<Alert severity="warning" sx={{ marginTop: 1 }}>
{t_i18n("The following TTPs are not covered in the Openbas catalog : ")}
{t_i18n('The following TTPs are not covered in the Openbas catalog : ')}
{result.attackPatternsWithoutInjectorContracts}
</Alert>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12217,8 +12217,8 @@ enum Platform {
}

enum Architecture {
AMD64
ARM64
x86_64
arm64
}

input SimulationConfig {
Expand Down
4 changes: 2 additions & 2 deletions opencti-platform/opencti-graphql/src/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ export type AppMemory = {
};

export enum Architecture {
Amd64 = 'AMD64',
Arm64 = 'ARM64'
Arm64 = 'arm64',
X86_64 = 'x86_64'
}

export type Artifact = BasicObject & HashedObservable & StixCoreObject & StixCyberObservable & StixObject & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const generateOpenBasScenario = async (
author,
simulationConfig
) => {
const { interval, selection, simulationType = 'technical', platforms = ['Windows'], architecture = 'AMD64' } = simulationConfig;
const { interval, selection, simulationType = 'technical', platforms = ['Windows'], architecture = 'x86_64' } = simulationConfig;

if (simulationType !== 'technical') {
await checkEnterpriseEdition(context);
Expand Down
4 changes: 2 additions & 2 deletions opencti-platform/opencti-graphql/src/modules/xtm/xtm.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ enum Platform {
}

enum Architecture {
AMD64
ARM64
x86_64
arm64
}

input SimulationConfig {
Expand Down

0 comments on commit 222c28a

Please sign in to comment.