diff --git a/OpenRA.FileFormats/OpenRA.FileFormats.csproj b/OpenRA.FileFormats/OpenRA.FileFormats.csproj
index 0f09e98ca2..3eee59f8e7 100644
--- a/OpenRA.FileFormats/OpenRA.FileFormats.csproj
+++ b/OpenRA.FileFormats/OpenRA.FileFormats.csproj
@@ -95,6 +95,7 @@
+
diff --git a/OpenRA.FileFormats/Verifier.cs b/OpenRA.FileFormats/Verifier.cs
new file mode 100644
index 0000000000..532e4d95ed
--- /dev/null
+++ b/OpenRA.FileFormats/Verifier.cs
@@ -0,0 +1,30 @@
+#region Copyright & License Information
+/*
+ * Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
+ * This file is part of OpenRA.
+ *
+ * OpenRA is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * OpenRA is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with OpenRA. If not, see .
+ */
+#endregion
+
+namespace OpenRA.FileFormats
+{
+ public static class Verifier
+ {
+ public static bool IsSafe(string filename)
+ {
+ return false; // todo
+ }
+ }
+}
diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs
index 1a91310ffa..c62296c236 100644
--- a/OpenRA.Game/Game.cs
+++ b/OpenRA.Game/Game.cs
@@ -75,7 +75,11 @@ namespace OpenRA
// Mod assemblies assumed to contain a single namespace
foreach (var a in m.Assemblies)
- asms.Add(Pair.New(Assembly.LoadFile(Path.GetFullPath(a)), Path.GetFileNameWithoutExtension(a)));
+ if (Verifier.IsSafe( Path.GetFullPath(a)))
+ asms.Add(Pair.New(
+ Assembly.LoadFile(Path.GetFullPath(a)),
+ Path.GetFileNameWithoutExtension(a)));
+
ModAssemblies = asms.ToArray();
}