You can lower the rate of pirate raids and eco disasters by adding following lines to the end of file preferences.prop located in "User name"/Application Data/Spore/Preferences directory. Just open it with notepad.
This should lower the rates and if you input 0 instead of 100 it should disable them.
You should also be able to input those lines like cheats inside the game, but you will have to do it each time you start Spore.
Other few helpful lines you could experiment with
universeSimulatorGrobTeaseAttackFrequency (100 by default) universeSimulatorGrobWarAttackFreqExtremelyAware (40 by default) universeSimulatorGrobWarAttackFreqVeryAware (80 by default) universeSimulatorGrobWarAttackFreqAware (160 by default) universeSimulatorWarAttackFrequency (300 by default)
Go to your game directory and locate file called spore_game.pakage inside data folder and make a copy of it somewhere. Then go to your user directory, locate spore folder and inside it folder called "Games" make a copy of it aswell.
Open Splview that you previously downloaded, select tools, select "unpack DBPF" and find your spore_game.pakage, wait till it unpacks it, then you'll see a folder inside spore Data directory called Spore_Game, inside it you'll see thousands of files, one you need should be called SP-_CHT-024A0E52-00000000-658B0AB2.txt it should be around 276kb.
replace all values with higher values to lower the frequencies of attacks (yes it seems that the higher the value is the lower actual attacks/disasters are)
Now save it, go back to splview and select Pack DBPF from tools menu, then pick any file inside Game_Pakage directory in first menu and type spore_game in the save file name in second menu. Wait till it finishes packing. Now just replace spore_game.pakage inside data directory with one you just created. Be sure that you have actually done a copy of it before replacing file.
Proly youll have to delete your save games and start completely new game. Anyway im not responsible to whatever damage you can do to your game and you might not be able to use sporopedia if you modify any of your game files.
For those who wondering there are other different options, including spaceship travel radius, tools, ai behavior and others.