diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..92d3100 --- /dev/null +++ b/.gitignore @@ -0,0 +1,118 @@ +venv/ + +# ---> Python +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + diff --git a/Entities/Core.md b/Entities/Core.md deleted file mode 100644 index 18ed91a..0000000 --- a/Entities/Core.md +++ /dev/null @@ -1,45 +0,0 @@ -The Core is the central VM on which the AniNIX's primary services are built. It is both a production platform and software repository location. - -# Etymology -The Core is so named because all the rest of the AniNIX is built around it. - -# Capacity and Components -The AniNIX is a [[ShadowArch]][[Category:ArchLinux]] installation. It receives the following resources from [[Forge2]]: -* 4 Cores -* 8GB RAM -* Virtualized GPU -* 2TB storage -* USB device assignment -* Virtual bridged network interface -* Bluetooth adapter passthrough -* CD/DVD drive -* BluRay drive - -# Hosted Services and Entities -{{Reference|Aether}}{{Reference|Cerberus}}{{Reference|Foundation}}{{Reference|Grimoire}}{{Reference|Heartbeat}}{{Reference|IRC}}{{Reference|TheRaven}}{{Reference|Singularity}}{{Reference|Sora}}{{Reference|SSH}}{{Reference|WebServer}}{{Reference|Wiki}}{{Reference|WolfPack}}{{Reference|Yggdrasil}} - -# Connections -{{Reference|Shadowfeed}}{{Reference|Eyes}}{{Reference|Windows}}{{Reference|DarkNet}} - -# Additional Reference -## Storage stack -The AniNIX uses the following storage stack, from user-accessed files to bits on disk. Bootability is from an unencrypted [https://wiki.archlinux.org/index.php/EXT4 EXT4 boot sector] and MBR [https://wiki.archlinux.org/index.php/GRUB GRUB] bootloader. -* Files -* [https://wiki.archlinux.org/index.php/XFS XFS Filesystem] -* LUKS volume -* LVM physical volume -* 2TB Physical disk - -The output of "lsblk -o NAME,KNAME,SIZE,FSTYPE,TYPE,MOUNTPOINT,LABEL,PARTLABEL" gives the following layout. Additional shares mounted to accomodate users are not shown.
-NAME KNAME SIZE FSTYPE TYPE MOUNTPOINT LABEL PARTLABEL -sda sda 1.8T disk -├─sda1 sda1 500M ext4 part /boot COREBOOT -└─sda2 sda2 1.8T LVM2_member part - ├─corestorage-coreswap dm-0 10G crypto_LUKS lvm - │ └─coreswap dm-3 10G swap crypt [SWAP] - └─corestorage-core dm-1 1.8T crypto_LUKS lvm - └─sysroot dm-2 1.8T xfs crypt / -sr0 sr0 1024M rom-}} - -[[Category:LDAP]] \ No newline at end of file diff --git a/Entities/DarkNet.d/Free_Internet_Practices.md b/Entities/DarkNet.d/Free_Internet_Practices.md deleted file mode 100644 index 69eedd5..0000000 --- a/Entities/DarkNet.d/Free_Internet_Practices.md +++ /dev/null @@ -1,26 +0,0 @@ -In the wake of the catastropic [http://money.cnn.com/2017/12/14/technology/fcc-net-neutrality-vote/index.html FCC vote to kill Net Neutrality], [[DarkNet|privacy VPN]] machines may become more prevalent to allow unfettered and uncensored access to the Internet. In the meantime, some less-drastic measures can be taken to help allow access to fettered, deprioritized, slow-laned, or censored traffic. - -Please visit the #freenet channel on [https://aninix.net/irc/ AniNIX::IRC] with questions or suggestions. - -# Recommendations -These settings are mostly for good encryption to prevent eavesdropping and good compression of traffic to better tolerate throttled links. -* Install Google Chrome. - * Turn on [https://chrome.google.com/webstore/detail/data-saver/pfmgfdlgomnbgkofeojodiodmgpgmkac?hl=en-US Data Saver] in your [chrome://extensions extensions]. - * Android users may find this inside Chrome under the triple-dot icon at the top right. -* Conduct a security review of Chrome as a best practice against ISP eavesdropping and deep packet inspection (which can be used for throttling or controlling your traffic). - * Check under [chrome://settings Chrome's settings] > "Advanced" > "Privacy and Security" to make sure the settings meet your need. We strongly encourage the "Protect you and your device from dangerous sites" and 'Send a "Do Not Track" request with your browsing traffic' options. - * Visit [https://myaccount.google.com/security?pli=1 myaccount.google.com/security] to run an account audit. - * Set up Google Authenticator or other two-factor solutions. -* Disable automatically downloading updates and instead patch machines weekly or when they're being shutdown. **Note: we strongly encourage patching! Make sure that you regularly check for patches.** - * Windows users can do this by following [[Forge2#Windows Update|these instructions]] under the Windows Update header. - * Linux users should make sure to download patches at night and perhaps share package files from a central package cache. - * Android users can do this from the Google Play store under Settings > Auto-update apps. -* Coordinate large downloads to occur during minimum usage hours. This is dependent on sysadmin analytics. -* Install Tor Browser to access censored content. - * Windows users can download from [https://www.torproject.org/download/download.html.en Tor]. - * Android users can install [https://play.google.com/store/apps/details?id=info.guardianproject.orfox Orfox] and [https://play.google.com/store/apps/details?id=org.torproject.android Orbot]. -* Set "Compression yes" in ~/.ssh/config. Older clients may need to additionally add "CompressionLevel 8". - -# Fight Back -* We still have a widget added to the WebServer root to allow you to continue to petition Congress against the FCC's decision. -* [https://techcrunch.com/2017/12/14/new-york-attorney-general-announces-a-multi-state-lawsuit-challenging-the-net-neutrality-vote/ Several states are suing.] Stay informed through [https://www.eff.org/ EFF] and [https://battleforthenet.com/ BattleForTheNet], and contribute where you can. \ No newline at end of file diff --git a/Entities/DarkNet.md b/Entities/DarkNet.md deleted file mode 100644 index 8704dbf..0000000 --- a/Entities/DarkNet.md +++ /dev/null @@ -1,26 +0,0 @@ -The DarkNet VM is the privacy protection of the AniNIX. The AniNIX does not believe in security by obscurity or in censorship; as such, everyone should have a voice. - -# Etymology -The DarkNet is named for an anonymous network whose access is controlled only by the admins and whose usage is known only to them. It's entirely closed and anonymous. - -# Capacity and Components -* [[ShadowArch]] -* 1 core -* 1024M of RAM -* 150G of storage -* Virtualized NIC - -# Hosted Services and Entities -The DarkNet uses a small package list but runs more than the standard ShadowArch install. Also included are the xfce4, xorg-server, tor-browser-en(AUR), transmission-gtk, transmission-cli, and openvpn packages. -## Abilities -* Encrypted storage by default to a passphrase known only to admins. -* Tor proxy service, integrated with both text lynx and GUI tor-browser-en browsers. - * Lynx is aliased to "torsocks lynx" globally -* Anonymous VPN via OpenVPN (details available on request) - -## Hosted -{{Reference|WolfPack}}{{Reference|VirusScan}} - -# Connections -{{Reference|Core}} -}} \ No newline at end of file diff --git a/Entities/Forge2.md b/Entities/Forge2.md deleted file mode 100644 index c027662..0000000 --- a/Entities/Forge2.md +++ /dev/null @@ -1,88 +0,0 @@ -The Forge2 is the primary hardware platform on which the AniNIX runs. - -# Etymology -The Forge2 the second Forge build, the original having been two towers instead of one. - -It is so named because the exterior is solid black with soft red LED's internally -- this creates an appearance similar to a furnace. - -The Forge builds are also so named because projects are created, developed, and tested in these frames. - -# Capacity and Components -* 6-core hyperthreaded core i7 at 3.4GHz, water-cooled by Corsair H100i two-fan cooler -* 24 GB RAM -* 13.2 TB onboard storage. One hotswap slot open. - * 60 GB solid state boot drive for Windows 10 Pro Hypervisor (Hyper-V) - * 1 1TB drive dedicated to additional user space and VM's - * 1 2TB drive dedicated to Windows data formatted as NTFS - * 1 2TB drive dedicated to Windows Backup formatted as NTFS - * 2 2TB drive dedicated to [[Core|AniNIX::Core]] -- see Core for the filesystem hierarchy there. - * One hotswap bay for [[Aether|AniNIX::Aether]] backups. - * 1 150GB drive for the [[DarkNet]] VM -* USB 2.0 & 3.0 and eSATA slots -* 2 10GB NIC's -- one for VM's and one for Windows -* Bluetooth Adapter -* Hyper-V virtualization under Windows 10 Pro[[Category:Microsoft]] -* 1200W Corsair power supply -* EVGA x79 Dark motherboard with PCI-e SATA extender -* SLI'ed GTX 760 GPU's with 4GB onboard cache each -* Corsair K70 Keyboard w/ red LED and Corsair M65 mouse. -* CyberPower UPS -[[Category:Corsair]] -[[Category:EVGA]] -[[Category:Intel]] -[[Category:Seagate]] -[[Category:Kingston]] - -# Hosted Services and Entities -{{Reference|Core}}{{Reference|Windows}}{{Reference|DarkNet}} - -# Connections -{{Reference|Infrastructure}}{{Reference|Shadowfeed}}{{Reference|Core}}{{Reference|Windows}} - -# Additional Reference -## Gallery -A gallery will be added. [[Category:TODO]] -}} -# Hypervisor Notes -Hyper-V integrates VM's with Windows, allowing VM's to be started at Windows boot, providing direct disk access, and managing assignment of cores, memory, and disk. - -ShadowArch guests with a GUI should include xf86-video-fbdev and set GRUB_CMDLINE_LINUX_DEFAULT="quiet video=hyperv_fb:1920x1080" to get maximum screen resolution. - -Hyper-V comes with a few limitations. PCI and USB devices can't be passed through without 3rd-party software, but this was considered acceptable. - -Hyper-V guests require significant configuration to prevent performance problems. Dynamic memory should be disabled to prevent a guest from overrunning the host. Data Exchange, Backup, and Guest Services should all be disabled from integration services. Disable checkpoints. Automatic start action should either be on startup or disabled, and automatic stop action should always be poweroff. - -Hyper-V itself also requires configuration of the Windows host. The default High Performance power profile turns off monitors when not in use but does not put the entire frame to sleep -- this is the desired behavior. - -## Antivirus -Make sure Hyper-V, if using [[VirusScan|antivirus]] follows the [[VirusScan#Hyper-V|Hyper-V considerations]]. - -Presently, this still caused drops in virtual disks, crashing several VM's, so we are suspending antivirus on the hypervisor, along with most general-purpose browsing. Read the following for other user experiences. -1. https://www.cnet.com/how-to/i-dont-use-anti-virus-software-am-i-nuts/ -1. https://www.reddit.com/r/windows/comments/41b0k0/is_antivirus_software_still_necessary_for_windows/ - -## Windows Update -The Windows Update service, if it deems the system too out of date or in need of critical fixes, may forcibly restart the system. We recommend keeping the Windows Update service disabled on hypervisors until patching is desired. This can be done in services.msc. - -We recommend addtionally setting the "gpedit.msc > Computer Configuration \ Administrative Templates \ Windows Components \ Windows Update \ Configure Automatic Updates" option if you have a Pro or Enterprise license. - -## Sleep Mode -Sleep mode, even immediately interrupted, has been observed to break network connectivity and VM uptime. When running as a Hypervisor, it is advisable to disable sleep and hibernate modes. Change these from Group Policy under Administrative Templates>System>Power Management>Sleep Settings. Enable "Turn Off Hybrid Sleep" and disable "Allow Standby States (S1-S3) when sleeping". - -## Previous Hypervisors -### VirtualBox -Oracle VirtualBox is a free hypervisor that can run on almost any OS. This makes deployment and device driver management entirely on the stock OS, which was Windows in our case thus alleviating driver problems. Management is also easy, particularly with an admin account, so it's easy to assign cores, memory, and such to a VM. VirtualBox can assign raw disk access with VBoxManage. Use Windows Disk Manager (diskmgmt.msc) to identify the disk. In the case below, 7 is the disk number. -
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" internalcommands createrawvmdk -filename "C:\Users\Admin\VirtualBox VMs\raw7.vmdk" -rawdisk \\.\PhysicalDrive7- -VirtualBox was dropped due to buggy integration with the running OS and the inability to start VM's at OS Boot. -### ArchLInux/KVM-enabled KVM -The Forge2 frame has a 60GB SSD installed for KVM-enabled QEMU virtualization inside a minimal ArchLinux host. This implementation allows passing any host resources to the guest, including USB and PCI devices which is an advantage over other Hypervisors. - -While Intel VT-d provided by the motherboard ostensibly supports this passthrough, it had hardware caps on the x79 that the AniNIX could not afford (4 hard drives, 1 CD drive) without disabling KVM, and the network bridging created problems for VPN clients. - -# Alternatives -You could in theory put the hardware for an AniNIX network clone in the Cloud. There are steps to set up ArchLinux in [http://codito.in/archlinux-on-azure/ Microsoft Azure] and [https://bbs.archlinux.org/viewtopic.php?id=186707 Google Cloud]. This may be advantageous for sites that have uptime concerns, low local resources, or physical security concerns. - -From a cost perspective, power and network for a Forge2 and [[Shadowfeed|AniNIX::Shadowfeed]] costs roughly $100 per month with a $6000 buy-in. Equivalent cloud solutions would need to supply at least one full backup image with highly available power and network, along with [[Forge2#Capacity and Components|equivalent capacity]]. - -You should look at [[Aether|AniNIX::Aether]] notes on cloud computing if you consider this as an option. \ No newline at end of file diff --git a/Entities/Forge3.md b/Entities/Forge3.md deleted file mode 100644 index 6b3d5e2..0000000 --- a/Entities/Forge3.md +++ /dev/null @@ -1,50 +0,0 @@ -AniNIX::Forge3 will be a successor to [[Forge2|AniNIX::Forge2]] and [[Infrastructure|AniNIX::Infrastructure]]. [[AniNIX::Core]] will be turned into hardware rather than VM, and a new systemd+qemu [[ShadowArch]] install will take the role of [[Hypervisor]] from [[Windows]]. Options being evaluated are below. - -**This is not yet live.** - -# New Rack Layout -* Forge2 bottom shelf, relegated to Windows [[Games]] and typically powered off. - * Requires 27.2 x 9.9 x 25.5 inchs -* Middle shelf: 2 PSU's in lateral -* Next shelf: soundproof-wrapped 2 x [https://unixsurplus.com/collections/supermicro-servers/products/supermicro-1u-x8dtu-f-dual-intel-xeon-e5645-hex-core-2-4ghz-1u-server?variant=23868756487 SuperMicro X8DTU-F servers] -- one as [[Core]] and one as [[Hypervisor]]/Dev. - * Requires 32" x 19" x 4" - * Hypervisor will virtualize [[Darknet]], [[Sharingan]], [[Aether]], [[Maat]], [[Cerberus]], and [[DedSec]] VM's. -* Top shelf: - * [[Shadowfeed]] - * [[Geth/Nazara]] - * [[Print]] - * Dev switch - -## Network -WAN link runs from modem to Shadowfeed WAN. Shadowfeed LAN are -1. Nazara -1. PRD ether -1. PRD IPMI -1. Switch WAN - -Switch LAN are -1. Dev ether -1. Dev IPMI -1. Dev table ether -1. Windows - -## USB -Each PSU has a USB that should be able to connect to Nazara. This will allow Nazara to monitor active power state into Nagios. - -## Power -UPS 1 sockets are provided from one wall outlet, max load 1200W and average load 300W. -1. HA - 1. PRD PSU (500W) - 1. Dev PSU (500W) -1. Surge only - 1. Dev table strip - 1. Laptop charger (100W) - -UPS 2 sockets are provided from a second wall outlet, max load 1300W and average load 100W, on a 25' 12-gauge outdoor extension cable. -1. HA - 1. Shadowfeed - 1. Nazara - 1. Switch - 1. Desk light (typically off) -1. Non-HA - 1. Windows (1200W) \ No newline at end of file diff --git a/Entities/Games.md b/Entities/Games.md deleted file mode 100644 index ad6367e..0000000 --- a/Entities/Games.md +++ /dev/null @@ -1,52 +0,0 @@ -The Games are a list of PC or emulated games available for users to play. - -# Etymology -Let's not play games -- this service is self-named. - -# Relevant Files and Software -[[Category:TODO]] -## AAA Titles -* The [https://assassinscreed.wikia.com/ Assassin's Creed] series -* Dishonored -* Deus Ex: Human Revolution -## Indie games -* Hacknet_ -## MMO's -* [http://swtor.com/ Star Wars: The Old Republic] -- AniNIX members are presently playing for the Empire faction and working with the [http://mandocabure.proboards.com/ Mando Cabure] guild. Ping an admin on IRC or Discord to join the gaming. -
# This game can be installed on ShadowArch with the following: -pacman -S wine-staging wine-mono -winecfg -winetricks d3dx9 vcrun2008 msls31 winhttp -1. Download launcher from swtor.com -wine ./SWTOR_launcher.exe -timeout 60 wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Electronic\ Arts/BioWare/Star\ Wars\ -\ The\ Old\ Republic/launcher.exe -vim ~/.wine/drive_c/Program\ Files\ \(x86\)/Electronic\ Arts/BioWare/Star\ Wars\ -\ The\ Old\ Republic/launcher.settings -1. Change bitraider_disable to true and download mode to SSN. -wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Electronic\ Arts/BioWare/Star\ Wars\ -\ The\ Old\ Republic/launcher.exe -- -* [http://www.crypticstudios.com/startrek Star Trek Online] -## Independent Games -: These are excellent for a [[Games/Team-building_Exercise|team-building exercise]]. -* [http://artemis.eochu.net Artemis Bridge Simulator] -* [https://unvanquished.net Unvanquished] -## Emulators -* Desmune -* VisualBoy Advance -* ScummVM - -# Available Clients -We are investigating NVidia SHIELD technology for the AAA titles. - -The [[Games#Independent Titles|independent titles]] have game clients that can be downloaded and the AniNIX made to be the hosting server. - -# Additional Reference -## Recovery -Recovering games used to be a tired process of maintaining product keys. Today, this is less an impact. Instead, one should buy games through services that allow reinstallation of the same. [https://steampowered.com Steam] and [https://uplay.ubi.com/ Uplay] both support this functionality. SWTOR and MMO's like it do not install unique content directly to the local machine, so they are easily reinstalled. - -Independent games or freeware should be preserved through keeping copies of the installers. - -## Streaming -Linux [[Tachikoma]] or [[DedSec]] hosts can stream from a Games install using Steam in-home streaming. Wireless AC connections are recommended, and [https://support.steampowered.com/kb_article.php?ref=8571-GLVN-8711 firewall rules] need to be made. -}} -[[Category:Internal_Service]] \ No newline at end of file diff --git a/Entities/Geth_Armature.md b/Entities/Geth_Armature.md deleted file mode 100644 index c7d02e9..0000000 --- a/Entities/Geth_Armature.md +++ /dev/null @@ -1,24 +0,0 @@ -The Geth Armature is a robotic body that allows the Geth to interact with the real world. - -# Uses -1. Physical patrolling -1. Lock inspection -1. Invalid care, for those unable to move on their own. -1. Hardware inspection, in the case of an [[Sharingan|AniNIX::Sharingan]] alert. -1. Potentially firing off other Geth-controlled units, such as carrying an IR module into range of a Roomba. - -# Hardware -We're coding for [http://www.swiftstreamrc.com/product/robo-buddy/ RoboBuddy from SwiftStream], but the process to be documented will be very similar for any mobile IP camera. Key requirements: -* Articulation on the camera -* Onboard lights -* Durability of frame -* Self-recharging -* Good resolution - -# Softare -In development! [[Category:TODO]] - -# Etymology -While many Geth mobile units were modeled after their Quarian creators, larger security units were more utilitarian. The collapsible, giraffe-like Armature were the heavy armor that could be deployed into hostile territory to protect their holdings. Similarly, ours protects our locations. - -[[Category:Entity]] \ No newline at end of file diff --git a/Entities/Holocron.md b/Entities/Holocron.md deleted file mode 100644 index bc75d83..0000000 --- a/Entities/Holocron.md +++ /dev/null @@ -1,82 +0,0 @@ -WARNING: Holocrons should not hold copies of sensitive information.
-NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT -fd0 2:0 1 4K 0 disk -sda 8:0 0 1G 0 disk -sdb 8:16 1 59.6G 0 disk -|-sdb1 8:17 1 40G 0 part /mnt/xplatfrm -|-sdb2 8:18 1 9.3G 0 part /boot -`-sdb3 8:19 1 9.3G 0 part - `-spartacus 254:0 0 9.3G 0 crypt / -sr0 11:0 1 544K 0 rom -- -WARNING: Do not store sensitive information on Holocrons!
-1. !/bin/bash -exec tail -n +3 $0 -probe -u $root --set=rootuuid -set imgdevpath="/dev/disk/by-uuid/$rootuuid" -menuentry 'ArchLinux ISO' { - set isofile='/iso/archlinux.iso' - loopback loop $isofile - linux (loop)/arch/boot/x86_64/vmlinuz archisodevice=/dev/loop0 img_dev=$imgdevpath img_loop=$isofile earlymodules=loop - initrd (loop)/arch/boot/x86_64/archiso.img -} -menuentry "Kali Linux ISO" { - set isofile='/iso/kali-linux.iso' - loopback loop $isofile - linux (loop)/live/vmlinuz boot=live findiso=$isofile noconfig=sudo username=root hostname=kali earlymodules=loop - initrd (loop)/live/initrd.img -} -menuentry "CentOS ISO" { - set isofile='/boot/iso/CentOS.iso' - loopback loop $isofile - linux (loop)/isolinux/vmlinuz noeject inst.stage2=hd:/dev/sdb2:/$isofile - initrd (loop)/isolinux/initrd.img -} -- -## Recommended uses -* ArchLinux ISO: This ISO can be used to have a clean point from which to start -- its signature and size can be compared against [https://archlinux.org/download the ArchLinux page] for integrity. -* Kali Linux ISO: This ISO is a hack suite, porting the latest tools with the user. -* CentOS ISO: This allows a user to access an enterprise network using a trusted OS with a known signature. -* ArchLinux local install: This is a portable workspace for the carrier -- packages installed here will be persistent, and allow the user to boot their own toolset without any or much network traffic. -* Cross-platform storage: This allows Spartacus to perform as a usual flash-drive. -}} \ No newline at end of file diff --git a/Entities/Infrastructure.md b/Entities/Infrastructure.md deleted file mode 100644 index 45025cd..0000000 --- a/Entities/Infrastructure.md +++ /dev/null @@ -1,26 +0,0 @@ -The Infrastructure is a conglomerate of machines with mostly proprietary firmware providing power and connectivity to the AniNIX. - -# Etymology -This should be self-explanatory -- the Infrastructure describes the lowest-level connection between the digital world of the AniNIX and the physical world. The Infrastructure passes raw resources from the physical world for the AniNIX to manipulate. - -# Capacity and Components -The capacity of the Infrastructure is limited by the following areas: -* Power: 1500VA / 900W with surge protection on all sockets and battery power on three sockets for roughly 20 minutes of operation under the usual AniNIX load. [[Category:HasBattery]] Power is provided by Madison Gas & Electric [[Category:MG&E]] via a CyberPower UPS [[Category:CyberPower]] -* Network: Charter Communications modem providing, ostensibly, a 500MB/s upload and 6Gb/s download speed. SpeedTest.com results fluctuate. [[Category:Charter]] - -# Hosted Services and Entities -{{Reference|Shadowfeed}}{{Reference|Forge2}} - -# Connections -{{Reference|Windows}} - -# Additional Reference -For hosts seeking insight into the Infrastructure, they can install the PowerPanel software from CyberPower. ArchLinux contains a copy of it in the AUR: [https://aur.archlinux.org/packages/powerpanel/ linked here] - -The following files are then critical for configuration, after the USB device is connected to the monitoring host: -* /etc/pwrstatd.conf -* /etc/powerpanel/pwrstatd-email.sh -* /etc/powerpanel/pwrstatd-lowbatt.sh -* /etc/powerpanel/pwrstatd-powerfail.sh -* /usr/lib/systemd/system/pwrstatd.service -}} \ No newline at end of file diff --git a/Entities/Nazara.md b/Entities/Nazara.md deleted file mode 100644 index 9b7eca7..0000000 --- a/Entities/Nazara.md +++ /dev/null @@ -1,17 +0,0 @@ -A Nazara host is a gateway to accessing other hosts. It is a safeguard against admin error. - -# Etymology - -Nazara hosts are named because they are the first line of defense against administrative error -- they prevent admins from being locked out of correcting their changes. - -# Capacity and Components -A Nazara host needs minimal CPU or memory. - -# Hosted Services and Entities -Nothing is hosted by a Nazara. - -# Connections -Any host should be able to connect to a Nazara with [SSH](../Services/SSH.md) and X11, and it should be able to dial to any service provider. - -# Additional Reference -Nazara hosts should be deployed alongside any Hypervisor. They can be as simple as a Pi-hole with SSH access, and they should be allowed to receive SSH connections from a non-tcp/22/ssh port. diff --git a/Entities/Print.md b/Entities/Print.md deleted file mode 100644 index f38a265..0000000 --- a/Entities/Print.md +++ /dev/null @@ -1,10 +0,0 @@ -Print is the printer/scanner of the AniNIX, aimed at offering the option to convert materials from digital to physical and vice-versa. - -# Etymology=This entity is self-named. - -# Capacity and Components=A [[Category:Brother]]Brother MFC-J430W will fill this role nicely, with color printing, scanning, and (unused) faxing abilities. It can be easily installed from [https://aninix.net/foundation/ConfigPackages/ ConfigPackages]. - -# Hosted Services and Entities=There are no hosted aspects. - -# Connections={{Reference|Core}} -}} \ No newline at end of file diff --git a/Entities/Roomba.md b/Entities/Roomba.md deleted file mode 100644 index 4e27523..0000000 --- a/Entities/Roomba.md +++ /dev/null @@ -1 +0,0 @@ -[[Category:TODO]]Roomba is a cleaning bot for the AniNIX \ No newline at end of file diff --git a/Entities/Rufus.md b/Entities/Rufus.md deleted file mode 100644 index fc7905f..0000000 --- a/Entities/Rufus.md +++ /dev/null @@ -1,42 +0,0 @@ -Rufus is an overlay to make use of unused clock cycles on AniNIX hardware. It allows the AniNIX to take what would otherwise be wasted power and network presence and put it to either profit or charity. - -# Etymology=Rufus is named after the naked mole rat from the Kim Possible TV series; a ubiquitious companion to the protagonists, Rufus' species is also capable of great feats of digging, given their traditionally subterranean habitat. The Rufus system is equally useful at mining resources for the AniNIX, keeping it online. - -# Capacity and Components=Capacity depends on the number of rigs available. A "rig" may simply be a [[Geth/Hub|AniNIX::Geth hub]], a running VM, or a full-featured rig. - -Our full-featured rigs are built from cheap consumer-grade parts.[https://www.youtube.com/watch?v=3YMxGGXme8g Motherboard Ethereum mining presentation], accessed 2/5/18]. We have a list of our current desired parts at [https://secure.newegg.com/Wishlist/SharedWishlistDetail?ID=vcB3403ONPRZhXHgzQNC%2fg%3d%3d Newegg]. - -# Hosted Services and Entities -## Ethereum -[https://ethereum.org Ethereum]https://wiki.archlinux.org/index.php/Ethereum is a decentralized currency and contract blockchain. - -Install and upgrade python3. From that, we can install [http://raspnode.com/diyEthereumPyeth.html PyEthApp] to mine the currency. -
-pip3 install pyethapp -- -Multiple miners can be supported in a single network, but port 30303 must be forwarded to the first node. Other nodes in the cluster will connect their ethminer to that node. - -Funds can be transferred to an Ethereum wallet by TODO.[[Category:TODO]][[Category:Coinbase]] - -## Bitcoin -Bitcoinhttps://wiki.archlinux.org/index.php/Bitcoin is another decentralized blockchain currency -- in fact, it was the first and most popular. - -Mining is done by connecting GPU's or [https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=Raspberry+pi+ASIC+bitcoin ASIC miners] to your host. From there, install bfgminer and benchmark the attached ASIC's. This can be done by standalone block mining or pool mining, where a group of miners agree to mine for the same block through shared and decentralized work. - -When satisfied with the operation of the benchmarking, bfgminer can be run with all hardware and a Coinbase address to receive the funds. - -## Folding@Home -[https://foldingathome.org/ Folding@Home]https://wiki.archlinux.org/index.php/Folding@home is a Stanford project for protein folding research, helping researchers solve disease problems. This is our premiere project for our [https://aninix.net/pages/charity.php charity work]. - -Install the [https://aur.archlinux.org/packages/foldingathome/ Folding@Home package] from Stanford. This will allow you to receive units of work from Stanford and process them. - -## BOINC -[http://boinc.berkeley.edu/ BOINC] is a Berkley project for supporting underfunded research projects by allowing open computing resources. - -Install the [https://www.archlinux.org/packages/?name=boinc-nox boinc-nox]https://wiki.archlinux.org/index.php/BOINC package from Berkley. Enabling the service will use your compute resources for the needy projects. - -# Connections=Rufus runs on any available hardware. - -# Additional Reference=[https://aninix.net/irc/ Contact an admin] for current ROI -- example math can be seen in [https://www.youtube.com/watch?v=8eXI_7O4Svc this presentation]. Also, [https://www.youtube.com/watch?v=U_LK0t_qaPo this presentation] offers an overview of how Ethereum the protocol works.}} -# References \ No newline at end of file diff --git a/Entities/Shadowfeed.md b/Entities/Shadowfeed.md deleted file mode 100644 index eb0e8ee..0000000 --- a/Entities/Shadowfeed.md +++ /dev/null @@ -1,51 +0,0 @@ -The Shadowfeed is the networking gateway between the AniNIX and the outside world -- it broadcasts the AniNIX signal and allows the network to communicate. - -# Etymology -The Shadowfeed is named after a resistance communications network in the Star Wars universe. The [http://starwars.wikia.com/wiki/CIS_Shadowfeed Shadowfeed] was a disseminated network routed through existing communications technology, allowing a separatist movement to broadcast its message. - -# Capacity and Components -The Shadowfeed is an Netgear R7000 Nighthawk router hardware flashed with DD-WRT firmware.[[Category:DD-WRT]][[Category:Netgear]] It can hold numerous clients wirelessly, and it supports wired USB 2.0 and 3.0 hard-drives to create simple NAS storage. There are five physical slots, one occupied by wired connection to the Forge2 frame, one by a connection to the Verizon wireless tower, and one to the Infrastructure. One remaining slot is free with a 100ft Cat5e cable and the other reserved for hotswap in case of port failure or LAN need. - -Note: the best place we've found to grab firmware updates is [https://ddwrt-kong.clonevince.fr/ this upload site for Kong's builds]. Ensure that you are on build 33525 or later to avoid being vulnerable to [https://aircrack-ng.blogspot.com/2017/10/krack-wpa-vulnerability-key.html KRACK]. Follow the instructions [https://dd-wrt.com/wiki/index.php/Installation from the DD-WRT Wiki] to flash your router with new firmware or to patch. Make sure to watch for the peacocking notes! Use the dork "kong dd-wrt build
-iptables -t nat -I PREROUTING -p tcp -d $(nvram get wan_ipaddr) --dport 3389 -j DNAT --to 10.0.1.2 [ -s SourceIP ] -iptables -I FORWARD -p tcp -d 10.0.1.2 --dport 3389 -j ACCEPT -iptables -t nat -I PREROUTING -p udp -d $(nvram get wan_ipaddr) --dport 3389 -j DNAT --to 10.0.1.2 [ -s SourceIP ] -iptables -I FORWARD -p udp -d 10.0.1.2 --dport 3389 -j ACCEPT --## Direct config alteration -nvram show will get all the current options, whereas nvram get variable will return a variable. - -nvram set or unset change variables. - -nvram commit pushes the change. - -## Guest Wifi -[https://dd-wrt.com/wiki/index.php/Guest_Network See here.] - -## Sample Startup Script -The following will insert firewall lines into your sample startup script to harden your network edge. This allows [[WebServer|web]], [[SSH]], [[IRC]], [[Geth|AniNIX::Geth]], and [[Nazara|bastion]] access through the firewall, dropping all others. It also sets up the block chain for [[Cerberus|AniNIX::Cerberus]]. - -
-iptables -N severe -iptables -I INPUT 2 -i vlan2 -j DROP -iptables -I INPUT 2 -i vlan2 -p tcp -m tcp --dport 22 -j ACCEPT -iptables -I INPUT 2 -i vlan2 -p tcp -m tcp --dport 80 -j ACCEPT -iptables -I INPUT 2 -i vlan2 -p tcp -m tcp --dport 443 -j ACCEPT -iptables -I INPUT 2 -i vlan2 -p tcp -m tcp --dport 6641 -j ACCEPT -iptables -I INPUT 2 -i vlan2 -p tcp -m tcp --dport 6697 -j ACCEPT -iptables -I INPUT 2 -i vlan2 -p tcp -m tcp --dport 9022 -j ACCEPT -iptables -I INPUT 2 -j severe -iptables -I FORWARD -j severe --}} \ No newline at end of file diff --git a/Entities/Tachikoma.md b/Entities/Tachikoma.md deleted file mode 100644 index 1e43348..0000000 --- a/Entities/Tachikoma.md +++ /dev/null @@ -1,10 +0,0 @@ -|Tachikoma|Tachikoma are individual user or service machines.| -word -These are named after [https://www.youtube.com/watch?v=lNY53tZ2geg Tachikoma from Ghost in the Shell]. These AI-powered tanks offered personal transportation, concealment, - -# Capacity and Components -Capacity is indeterminate -- depends on the hardware being used. - -# Hosted Services and Entities=No services should be hosted for Tachikoma, despite [[SSH|an SSH server for remote access]]. - -# Connections=Varies by purpose}} \ No newline at end of file diff --git a/Entities/Tricorder.md b/Entities/Tricorder.md deleted file mode 100644 index facbaf7..0000000 --- a/Entities/Tricorder.md +++ /dev/null @@ -1,48 +0,0 @@ -Omnitool is a mobile smartphone client of the network. - -# Etymology -The Tricorder is named after the fictional and ubiquitous devices from the Star Trek universe. Because the Tricorder is useful in a number of situations, hand-held in the same way, and is almost always handled by an Admin save during sleep, the name was apt. - -Besides, we like the subtlety, craftiness, and paranoia of the Romulans. - -# Capacity and Components -This is a Verizon Wireless Droid Turbo smartphone running the Android OS. [[Category:USCellular]][[Category:Google]] -* 48 hours of usability -* 5.2" Gorilla Glass 4 Display with 1920x1080 resolution -* 32 GB of onboard storage, encrypted with Android PIN -* Microphone -* 16MP Camera -* CDMA, GSM, WCDMA, UMTS, LTE Network-capable with US Cellular SIM - -# Hosted Services and Entities -The Tricorder can host a couple remote-management tools. -* Apps can be remotely installed with [https://play.google.com/ Google Play Store]. -* Location identification, remote locking, and remote wiping can be achieved with [https://google.com/android/devicemanager Google Device Manager]. -* SMS, notifications, and call response can be remotely controlled with a vivoactive HR or [https://aninix.net/wiki/Subscriptions#Pushbullet Pushbullet]. - -# Connections -This device has clients for the following entities. -{{Reference|Singularity}}{{Reference|Yggdrasil}}{{Reference|Eyes}}{{Reference|SSH}} -This device physically can connect to the following. -{{Reference|Infrastructure}}{{Reference|Shadowfeed}}{{Reference|Forge2}} -This device can also extend Bluetooth and WiFi technology to the following devices, to extend the AniNIX's reach. -* Drones, such as the Parrot AR.Drone 2.0, over WiFi -* Smart devices, like the Garmin vivoactive HR smartwatch or smart scales, over bluetooth -* Car and other stereos over Bluetooth (this is particularly useful for playing back audio from Yggdrasil) -* Bluetooth-capable devices for file transfer -* WiFi-capable devices via ad-hoc WiFi network - -# Additional Reference -* [https://www.lg.com/us/cell-phones/lg-US701-Black-us-cellular Reference page] -* [https://memory-alpha.wikia.com/wiki/Romulan_tricorder Star Trek Wiki page] -## Recovery Path -Please encrypt your Tricorder for privacy reasons. For those concerned, here is your recovery path, should the device be rendered inoperable or inaccessible. -* The Google Play Store records all applications installed on the phone. -* Music, pictures, and video should be replicated from [[Yggdrasil|AniNIX::Yggdrasil]]. Please use an [[SSH|SFTP]] client to regularly store your necessary files on your AniNIX account, or upload your files to a trusted storage service. For insecure files, [https://drive.google.com Google Drive] is sufficient and free. -* Customizations will be lost but should be easily recreated. -* SSH Keys should be recreated. Remove any existing public keys from servers the device had access to. -* Android devices can be remotely wiped, locked, or pinged from Android Device Manager. - -Most severe problems with an Android device can be fixed with a factory reset, patching, app re-installation from the Play Store, and pulling down any desired files. While this is a cumbersome process, for non-rooted, encrypted devices, this is often the easiest route. -}} -{{Mobile}} \ No newline at end of file diff --git a/Entities/Windows.md b/Entities/Windows.md deleted file mode 100644 index cfdc340..0000000 --- a/Entities/Windows.md +++ /dev/null @@ -1,49 +0,0 @@ -: Warning: Windows may reformat non-Windows partitions with no warning during boot. We recommend keeping strong backups and controlling when Windows Update runs. See [http://www.omgubuntu.co.uk/2016/08/windows-10-anniversary-update-delete-partition OMGUbuntu's article] for end user experiences. -Windows is a ubiquitous desktop environment for home computing, still compromising the majority of the market. The AniNIX hosts a virtualized Windows host to access the tools and software developed for that OS. - -# Etymology -The Windows host is named for the OS it runs. - -# Capacity and Components -Windows' components are provided by Microsoft. [[Category:Microsoft]] The Windows host is granted networking, USB assignments, the GTX 760 pair, 2TB of storage, 8 GB RAM, and 4 cores from [[Forge2]]. - -# Hosted Services and Entities -{{Reference|Games}}{{Reference|VirusScan}} -## Customization -There is a desktop theme available to skin the Windows desktop environment in the same fashion as [[ShadowArch]], the WebServer and the Wiki. Download it from [https://aninix.net/aninix.deskthemepack this link]. -## Standard Packages -Available from [https://aninix.net/wolfpack WolfPack's repo]: -* SeaMonkey Browser - * Chrome Browser can be used in place of SeaMonkey or in addition to support Chromecasts. -* PuTTY Terminal Emulator -* WinSCP File Transfer -* Launchy to emulate Linux Alt+F2 running -* VNC viewer -* Xming X11 server -* DaemonTools Lite for mounting ISO's. - -## Hypervisor Role -A Hypervisor should also be deployed. -* A Windows 10 Pro license offers Hyper-V, which allows enterprise-style VM availability -* VMWare Workstation or VirtualBox are also alternatives. - -## Work Role Packages -* WebEx -* AnyConnect -* One productivity suite from: - * LibreOffice - * Microsoft Office -* Notepad++ - -# Connections -{{Reference|Forge2}}{{Reference|Shadowfeed}}{{Reference|Infrastructure}} - -# Additional Reference -Remember the following things when dealing with Windows: -* Windows updates and upgrades stand a very good chance of being destructive to other systems and itself. Never upgrade without a backup, and everything installed on Windows should have an independent recovery plan. See [[Games#Recovery]] for an example. -* Windows tries to send data to Microsoft. Check account settings to opt out. -* Always disable autorun to help slow malware. - -## Unified Credentials -Install [https://pgina.org/ pGina] for LDAP authentication, including with [[Sora|AniNIX::Sora]].[[Category:LDAP]] -}} \ No newline at end of file diff --git a/Layouts/.Internet/Shadowfeed/10.0.1.0/Core/Darknet b/Layouts/.Internet/Shadowfeed/10.0.1.0/Core/Darknet new file mode 100644 index 0000000..e69de29 diff --git a/Layouts/.Internet/Shadowfeed/10.0.1.0/Core/Geth-Hub-N b/Layouts/.Internet/Shadowfeed/10.0.1.0/Core/Geth-Hub-N new file mode 100644 index 0000000..e69de29 diff --git a/Layouts/.Internet/Shadowfeed/10.0.1.0/Core/Maat b/Layouts/.Internet/Shadowfeed/10.0.1.0/Core/Maat new file mode 100644 index 0000000..e69de29 diff --git a/Layouts/.Internet/Shadowfeed/10.0.1.0/Core/MaatBuilder b/Layouts/.Internet/Shadowfeed/10.0.1.0/Core/MaatBuilder new file mode 100644 index 0000000..e69de29 diff --git a/Layouts/.Internet/Shadowfeed/10.0.1.0/Core/Sharingan b/Layouts/.Internet/Shadowfeed/10.0.1.0/Core/Sharingan new file mode 100644 index 0000000..e69de29 diff --git a/Layouts/.Internet/Shadowfeed/10.0.1.0/Nazara b/Layouts/.Internet/Shadowfeed/10.0.1.0/Nazara new file mode 100644 index 0000000..e69de29 diff --git a/Layouts/.Internet/Shadowfeed/10.0.2.0/Chamberlain b/Layouts/.Internet/Shadowfeed/10.0.2.0/Chamberlain new file mode 100644 index 0000000..e69de29 diff --git a/Layouts/.Internet/Shadowfeed/10.0.2.0/Nest b/Layouts/.Internet/Shadowfeed/10.0.2.0/Nest new file mode 100644 index 0000000..e69de29 diff --git a/Layouts/.Internet/Shadowfeed/10.0.2.0/iRobot b/Layouts/.Internet/Shadowfeed/10.0.2.0/iRobot new file mode 100644 index 0000000..e69de29 diff --git a/Layouts/.Internet/Shadowfeed/10.0.3.0/Games b/Layouts/.Internet/Shadowfeed/10.0.3.0/Games new file mode 100644 index 0000000..e69de29 diff --git a/Layouts/.Internet/Shadowfeed/10.0.3.0/Tachikoma b/Layouts/.Internet/Shadowfeed/10.0.3.0/Tachikoma new file mode 100644 index 0000000..e69de29 diff --git a/Layouts/.Internet/Shadowfeed/10.0.3.0/Tricorder b/Layouts/.Internet/Shadowfeed/10.0.3.0/Tricorder new file mode 100644 index 0000000..e69de29 diff --git a/Layouts/Diagrams.md b/Layouts/Diagrams.md new file mode 100644 index 0000000..0babb04 --- /dev/null +++ b/Layouts/Diagrams.md @@ -0,0 +1,39 @@ +Access layout looks something like the below: +``` +Internet +└── Shadowfeed + ├<> 10.0.1.0 + │ ├── Core + ^ │ ├── Darknet + │ │ ├── Geth-Hub-N + │ │ ├── Maat + │ │ ├── MaatBuilder + │ │ └── Sharingan + │ └── Nazara + ├── 10.0.2.0 + │ ├── Chamberlain + ^ ├── iRobot + │ └── Nest + └── 10.0.3.0 + ├── Games + ├── Tachikoma + └── Tricorder +``` + +For more details on what runs on what host, look to [AniNIX/Ubiqtorate](/AniNIX/Ubiqtorate), particularly the `playbooks/deploy.yml` file, and the network traffic captured in [AniNIX/Sharingan](https://sharingan.aninix.net/). + +The general idea here is thus: +* 10.0.1.0/24 is the service subnet, with NAT access from Shadowfeed creating a pseudo-secured DMZ for other AniNIX-controlled machines. + * SSH and HTTPS access is then filtered through the NAT controls -- typically, traffic passes through Core to ensure the right security headers get set and only the approved applications get accessed. + * This also assists in letting Core's network IDS and IPS capture threat data for Sharingan. + * It also assists in that +* 10.0.2.0/24 is the vendor subnet -- machines here get external access but no access to any host not themselves in 10.0.0.0/8. +* 10.0.3.0/24 is the user subnet -- machines here can access the external world and 10.0.1.0/24 but not 10.0.2.0/24. + +Ideally, only the following external ports are open: +* 22/tcp/ssh to Core, for read-write access +* 443/tcp/https to Core, for read-only access +* 6697/tcp/ircs to Core, for communication access +* Some external NAT port for bastion access to Nazara. + +This ideal isn't currently met, due to some application limitations, but we're working on it. diff --git a/Layouts/Entities.md b/Layouts/Entities.md new file mode 100644 index 0000000..b02bc16 --- /dev/null +++ b/Layouts/Entities.md @@ -0,0 +1,611 @@ +This is a high-level overview of the hosts used by the AniNIX. A truer source-of-truth is in [AniNIX/Ubiqtorate](/AniNIX/Ubiqtorate), but we include this for conversation and dialog. + +# Core + +The Core is the central VM on which the AniNIX's primary services are built. It is both a production platform and software repository location. + +## Etymology +The Core is so named because all the rest of the AniNIX is built around it. + +## Capacity and Components +The AniNIX is a [AniNIX/ShadowArch](/AniNIX/ShadowArch) installation. It receives the following resources from [[Forge2]]: +* 4 Cores +* 8GB RAM +* Virtualized GPU +* 2TB storage +* USB device assignment +* Virtual bridged network interface +* Bluetooth adapter passthrough +* CD/DVD drive +* BluRay drive + +## Hosted Services and Entities +{{Reference|Aether}}{{Reference|Cerberus}}{{Reference|Foundation}}{{Reference|Grimoire}}{{Reference|Heartbeat}}{{Reference|IRC}}{{Reference|TheRaven}}{{Reference|Singularity}}{{Reference|Sora}}{{Reference|SSH}}{{Reference|WebServer}}{{Reference|Wiki}}{{Reference|WolfPack}}{{Reference|Yggdrasil}} + +## Connections +{{Reference|Shadowfeed}}{{Reference|Eyes}}{{Reference|Windows}}{{Reference|DarkNet}} + +## Additional Reference +### Storage stack +The AniNIX uses the following storage stack, from user-accessed files to bits on disk. Bootability is from an unencrypted [https://wiki.archlinux.org/index.php/EXT4 EXT4 boot sector] and MBR [https://wiki.archlinux.org/index.php/GRUB GRUB] bootloader. +* Files +* [https://wiki.archlinux.org/index.php/XFS XFS Filesystem] +* LUKS volume +* LVM physical volume +* 2TB Physical disk + +The output of "lsblk -o NAME,KNAME,SIZE,FSTYPE,TYPE,MOUNTPOINT,LABEL,PARTLABEL" gives the following layout. Additional shares mounted to accomodate users are not shown.
+NAME KNAME SIZE FSTYPE TYPE MOUNTPOINT LABEL PARTLABEL +sda sda 1.8T disk +├─sda1 sda1 500M ext4 part /boot COREBOOT +└─sda2 sda2 1.8T LVM2_member part + ├─corestorage-coreswap dm-0 10G crypto_LUKS lvm + │ └─coreswap dm-3 10G swap crypt [SWAP] + └─corestorage-core dm-1 1.8T crypto_LUKS lvm + └─sysroot dm-2 1.8T xfs crypt / +sr0 sr0 1024M rom+}} + +[[Category:LDAP]]The DarkNet VM is the privacy protection of the AniNIX. The AniNIX does not believe in security by obscurity or in censorship; as such, everyone should have a voice. + +## Etymology +The DarkNet is named for an anonymous network whose access is controlled only by the admins and whose usage is known only to them. It's entirely closed and anonymous. + +## Capacity and Components +* [[ShadowArch]] +* 1 core +* 1024M of RAM +* 150G of storage +* Virtualized NIC + +## Hosted Services and Entities +The DarkNet uses a small package list but runs more than the standard ShadowArch install. Also included are the xfce4, xorg-server, tor-browser-en(AUR), transmission-gtk, transmission-cli, and openvpn packages. +### Abilities +* Encrypted storage by default to a passphrase known only to admins. +* Tor proxy service, integrated with both text lynx and GUI tor-browser-en browsers. + * Lynx is aliased to "torsocks lynx" globally +* Anonymous VPN via OpenVPN (details available on request) + +### Hosted +{{Reference|WolfPack}}{{Reference|VirusScan}} + +## Connections +{{Reference|Core}} +}}The Forge2 is the primary hardware platform on which the AniNIX runs. + +## Etymology +The Forge2 the second Forge build, the original having been two towers instead of one. + +It is so named because the exterior is solid black with soft red LED's internally -- this creates an appearance similar to a furnace. + +The Forge builds are also so named because projects are created, developed, and tested in these frames. + +## Capacity and Components +* 6-core hyperthreaded core i7 at 3.4GHz, water-cooled by Corsair H100i two-fan cooler +* 24 GB RAM +* 13.2 TB onboard storage. One hotswap slot open. + * 60 GB solid state boot drive for Windows 10 Pro Hypervisor (Hyper-V) + * 1 1TB drive dedicated to additional user space and VM's + * 1 2TB drive dedicated to Windows data formatted as NTFS + * 1 2TB drive dedicated to Windows Backup formatted as NTFS + * 2 2TB drive dedicated to [[Core|AniNIX::Core]] -- see Core for the filesystem hierarchy there. + * One hotswap bay for [[Aether|AniNIX::Aether]] backups. + * 1 150GB drive for the [[DarkNet]] VM +* USB 2.0 & 3.0 and eSATA slots +* 2 10GB NIC's -- one for VM's and one for Windows +* Bluetooth Adapter +* Hyper-V virtualization under Windows 10 Pro[[Category:Microsoft]] +* 1200W Corsair power supply +* EVGA x79 Dark motherboard with PCI-e SATA extender +* SLI'ed GTX 760 GPU's with 4GB onboard cache each +* Corsair K70 Keyboard w/ red LED and Corsair M65 mouse. +* CyberPower UPS +[[Category:Corsair]] +[[Category:EVGA]] +[[Category:Intel]] +[[Category:Seagate]] +[[Category:Kingston]] + +## Hosted Services and Entities +{{Reference|Core}}{{Reference|Windows}}{{Reference|DarkNet}} + +## Connections +{{Reference|Infrastructure}}{{Reference|Shadowfeed}}{{Reference|Core}}{{Reference|Windows}} + +## Additional Reference +### Gallery +A gallery will be added. [[Category:TODO]] +}} +## Hypervisor Notes +Hyper-V integrates VM's with Windows, allowing VM's to be started at Windows boot, providing direct disk access, and managing assignment of cores, memory, and disk. + +ShadowArch guests with a GUI should include xf86-video-fbdev and set GRUB_CMDLINE_LINUX_DEFAULT="quiet video=hyperv_fb:1920x1080" to get maximum screen resolution. + +Hyper-V comes with a few limitations. PCI and USB devices can't be passed through without 3rd-party software, but this was considered acceptable. + +Hyper-V guests require significant configuration to prevent performance problems. Dynamic memory should be disabled to prevent a guest from overrunning the host. Data Exchange, Backup, and Guest Services should all be disabled from integration services. Disable checkpoints. Automatic start action should either be on startup or disabled, and automatic stop action should always be poweroff. + +Hyper-V itself also requires configuration of the Windows host. The default High Performance power profile turns off monitors when not in use but does not put the entire frame to sleep -- this is the desired behavior. + +### Antivirus +Make sure Hyper-V, if using [[VirusScan|antivirus]] follows the [[VirusScan##Hyper-V|Hyper-V considerations]]. + +Presently, this still caused drops in virtual disks, crashing several VM's, so we are suspending antivirus on the hypervisor, along with most general-purpose browsing. Read the following for other user experiences. +1. https://www.cnet.com/how-to/i-dont-use-anti-virus-software-am-i-nuts/ +1. https://www.reddit.com/r/windows/comments/41b0k0/is_antivirus_software_still_necessary_for_windows/ + +### Windows Update +The Windows Update service, if it deems the system too out of date or in need of critical fixes, may forcibly restart the system. We recommend keeping the Windows Update service disabled on hypervisors until patching is desired. This can be done in services.msc. + +We recommend addtionally setting the "gpedit.msc > Computer Configuration \ Administrative Templates \ Windows Components \ Windows Update \ Configure Automatic Updates" option if you have a Pro or Enterprise license. + +### Sleep Mode +Sleep mode, even immediately interrupted, has been observed to break network connectivity and VM uptime. When running as a Hypervisor, it is advisable to disable sleep and hibernate modes. Change these from Group Policy under Administrative Templates>System>Power Management>Sleep Settings. Enable "Turn Off Hybrid Sleep" and disable "Allow Standby States (S1-S3) when sleeping". + +### Previous Hypervisors +#### VirtualBox +Oracle VirtualBox is a free hypervisor that can run on almost any OS. This makes deployment and device driver management entirely on the stock OS, which was Windows in our case thus alleviating driver problems. Management is also easy, particularly with an admin account, so it's easy to assign cores, memory, and such to a VM. VirtualBox can assign raw disk access with VBoxManage. Use Windows Disk Manager (diskmgmt.msc) to identify the disk. In the case below, 7 is the disk number. +
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" internalcommands createrawvmdk -filename "C:\Users\Admin\VirtualBox VMs\raw7.vmdk" -rawdisk \\.\PhysicalDrive7+ +VirtualBox was dropped due to buggy integration with the running OS and the inability to start VM's at OS Boot. +#### ArchLInux/KVM-enabled KVM +The Forge2 frame has a 60GB SSD installed for KVM-enabled QEMU virtualization inside a minimal ArchLinux host. This implementation allows passing any host resources to the guest, including USB and PCI devices which is an advantage over other Hypervisors. + +While Intel VT-d provided by the motherboard ostensibly supports this passthrough, it had hardware caps on the x79 that the AniNIX could not afford (4 hard drives, 1 CD drive) without disabling KVM, and the network bridging created problems for VPN clients. + +## Alternatives +You could in theory put the hardware for an AniNIX network clone in the Cloud. There are steps to set up ArchLinux in [http://codito.in/archlinux-on-azure/ Microsoft Azure] and [https://bbs.archlinux.org/viewtopic.php?id=186707 Google Cloud]. This may be advantageous for sites that have uptime concerns, low local resources, or physical security concerns. + +From a cost perspective, power and network for a Forge2 and [[Shadowfeed|AniNIX::Shadowfeed]] costs roughly $100 per month with a $6000 buy-in. Equivalent cloud solutions would need to supply at least one full backup image with highly available power and network, along with [[Forge2##Capacity and Components|equivalent capacity]]. + +You should look at [[Aether|AniNIX::Aether]] notes on cloud computing if you consider this as an option.AniNIX::Forge3 will be a successor to [[Forge2|AniNIX::Forge2]] and [[Infrastructure|AniNIX::Infrastructure]]. [[AniNIX::Core]] will be turned into hardware rather than VM, and a new systemd+qemu [[ShadowArch]] install will take the role of [[Hypervisor]] from [[Windows]]. Options being evaluated are below. + +**This is not yet live.** + +## New Rack Layout +* Forge2 bottom shelf, relegated to Windows [[Games]] and typically powered off. + * Requires 27.2 x 9.9 x 25.5 inchs +* Middle shelf: 2 PSU's in lateral +* Next shelf: soundproof-wrapped 2 x [https://unixsurplus.com/collections/supermicro-servers/products/supermicro-1u-x8dtu-f-dual-intel-xeon-e5645-hex-core-2-4ghz-1u-server?variant=23868756487 SuperMicro X8DTU-F servers] -- one as [[Core]] and one as [[Hypervisor]]/Dev. + * Requires 32" x 19" x 4" + * Hypervisor will virtualize [[Darknet]], [[Sharingan]], [[Aether]], [[Maat]], [[Cerberus]], and [[DedSec]] VM's. +* Top shelf: + * [[Shadowfeed]] + * [[Geth/Nazara]] + * [[Print]] + * Dev switch + +### Network +WAN link runs from modem to Shadowfeed WAN. Shadowfeed LAN are +1. Nazara +1. PRD ether +1. PRD IPMI +1. Switch WAN + +Switch LAN are +1. Dev ether +1. Dev IPMI +1. Dev table ether +1. Windows + +### USB +Each PSU has a USB that should be able to connect to Nazara. This will allow Nazara to monitor active power state into Nagios. + +### Power +UPS 1 sockets are provided from one wall outlet, max load 1200W and average load 300W. +1. HA + 1. PRD PSU (500W) + 1. Dev PSU (500W) +1. Surge only + 1. Dev table strip + 1. Laptop charger (100W) + +UPS 2 sockets are provided from a second wall outlet, max load 1300W and average load 100W, on a 25' 12-gauge outdoor extension cable. +1. HA + 1. Shadowfeed + 1. Nazara + 1. Switch + 1. Desk light (typically off) +1. Non-HA + 1. Windows (1200W)The Games are a list of PC or emulated games available for users to play. + +## Etymology +Let's not play games -- this service is self-named. + +## Relevant Files and Software +[[Category:TODO]] +### AAA Titles +* The [https://assassinscreed.wikia.com/ Assassin's Creed] series +* Dishonored +* Deus Ex: Human Revolution +### Indie games +* Hacknet_ +### MMO's +* [http://swtor.com/ Star Wars: The Old Republic] -- AniNIX members are presently playing for the Empire faction and working with the [http://mandocabure.proboards.com/ Mando Cabure] guild. Ping an admin on IRC or Discord to join the gaming. +
## This game can be installed on ShadowArch with the following: +pacman -S wine-staging wine-mono +winecfg +winetricks d3dx9 vcrun2008 msls31 winhttp +1. Download launcher from swtor.com +wine ./SWTOR_launcher.exe +timeout 60 wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Electronic\ Arts/BioWare/Star\ Wars\ -\ The\ Old\ Republic/launcher.exe +vim ~/.wine/drive_c/Program\ Files\ \(x86\)/Electronic\ Arts/BioWare/Star\ Wars\ -\ The\ Old\ Republic/launcher.settings +1. Change bitraider_disable to true and download mode to SSN. +wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Electronic\ Arts/BioWare/Star\ Wars\ -\ The\ Old\ Republic/launcher.exe ++ +* [http://www.crypticstudios.com/startrek Star Trek Online] +### Independent Games +: These are excellent for a [[Games/Team-building_Exercise|team-building exercise]]. +* [http://artemis.eochu.net Artemis Bridge Simulator] +* [https://unvanquished.net Unvanquished] +### Emulators +* Desmune +* VisualBoy Advance +* ScummVM + +## Available Clients +We are investigating NVidia SHIELD technology for the AAA titles. + +The [[Games##Independent Titles|independent titles]] have game clients that can be downloaded and the AniNIX made to be the hosting server. + +## Additional Reference +### Recovery +Recovering games used to be a tired process of maintaining product keys. Today, this is less an impact. Instead, one should buy games through services that allow reinstallation of the same. [https://steampowered.com Steam] and [https://uplay.ubi.com/ Uplay] both support this functionality. SWTOR and MMO's like it do not install unique content directly to the local machine, so they are easily reinstalled. + +Independent games or freeware should be preserved through keeping copies of the installers. + +### Streaming +Linux [[Tachikoma]] or [[DedSec]] hosts can stream from a Games install using Steam in-home streaming. Wireless AC connections are recommended, and [https://support.steampowered.com/kb_article.php?ref=8571-GLVN-8711 firewall rules] need to be made. +}} +[[Category:Internal_Service]]The Geth Armature is a robotic body that allows the Geth to interact with the real world. + +## Uses +1. Physical patrolling +1. Lock inspection +1. Invalid care, for those unable to move on their own. +1. Hardware inspection, in the case of an [[Sharingan|AniNIX::Sharingan]] alert. +1. Potentially firing off other Geth-controlled units, such as carrying an IR module into range of a Roomba. + +## Hardware +We're coding for [http://www.swiftstreamrc.com/product/robo-buddy/ RoboBuddy from SwiftStream], but the process to be documented will be very similar for any mobile IP camera. Key requirements: +* Articulation on the camera +* Onboard lights +* Durability of frame +* Self-recharging +* Good resolution + +## Softare +In development! [[Category:TODO]] + +## Etymology +While many Geth mobile units were modeled after their Quarian creators, larger security units were more utilitarian. The collapsible, giraffe-like Armature were the heavy armor that could be deployed into hostile territory to protect their holdings. Similarly, ours protects our locations. + +[[Category:Entity]]WARNING: Holocrons should not hold copies of sensitive information.
+NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT +fd0 2:0 1 4K 0 disk +sda 8:0 0 1G 0 disk +sdb 8:16 1 59.6G 0 disk +|-sdb1 8:17 1 40G 0 part /mnt/xplatfrm +|-sdb2 8:18 1 9.3G 0 part /boot +`-sdb3 8:19 1 9.3G 0 part + `-spartacus 254:0 0 9.3G 0 crypt / +sr0 11:0 1 544K 0 rom ++ +WARNING: Do not store sensitive information on Holocrons!
+1. !/bin/bash +exec tail -n +3 $0 +probe -u $root --set=rootuuid +set imgdevpath="/dev/disk/by-uuid/$rootuuid" +menuentry 'ArchLinux ISO' { + set isofile='/iso/archlinux.iso' + loopback loop $isofile + linux (loop)/arch/boot/x86_64/vmlinuz archisodevice=/dev/loop0 img_dev=$imgdevpath img_loop=$isofile earlymodules=loop + initrd (loop)/arch/boot/x86_64/archiso.img +} +menuentry "Kali Linux ISO" { + set isofile='/iso/kali-linux.iso' + loopback loop $isofile + linux (loop)/live/vmlinuz boot=live findiso=$isofile noconfig=sudo username=root hostname=kali earlymodules=loop + initrd (loop)/live/initrd.img +} +menuentry "CentOS ISO" { + set isofile='/boot/iso/CentOS.iso' + loopback loop $isofile + linux (loop)/isolinux/vmlinuz noeject inst.stage2=hd:/dev/sdb2:/$isofile + initrd (loop)/isolinux/initrd.img +} ++ +### Recommended uses +* ArchLinux ISO: This ISO can be used to have a clean point from which to start -- its signature and size can be compared against [https://archlinux.org/download the ArchLinux page] for integrity. +* Kali Linux ISO: This ISO is a hack suite, porting the latest tools with the user. +* CentOS ISO: This allows a user to access an enterprise network using a trusted OS with a known signature. +* ArchLinux local install: This is a portable workspace for the carrier -- packages installed here will be persistent, and allow the user to boot their own toolset without any or much network traffic. +* Cross-platform storage: This allows Spartacus to perform as a usual flash-drive. +}}The Infrastructure is a conglomerate of machines with mostly proprietary firmware providing power and connectivity to the AniNIX. + +## Etymology +This should be self-explanatory -- the Infrastructure describes the lowest-level connection between the digital world of the AniNIX and the physical world. The Infrastructure passes raw resources from the physical world for the AniNIX to manipulate. + +## Capacity and Components +The capacity of the Infrastructure is limited by the following areas: +* Power: 1500VA / 900W with surge protection on all sockets and battery power on three sockets for roughly 20 minutes of operation under the usual AniNIX load. [[Category:HasBattery]] Power is provided by Madison Gas & Electric [[Category:MG&E]] via a CyberPower UPS [[Category:CyberPower]] +* Network: Charter Communications modem providing, ostensibly, a 500MB/s upload and 6Gb/s download speed. SpeedTest.com results fluctuate. [[Category:Charter]] + +## Hosted Services and Entities +{{Reference|Shadowfeed}}{{Reference|Forge2}} + +## Connections +{{Reference|Windows}} + +## Additional Reference +For hosts seeking insight into the Infrastructure, they can install the PowerPanel software from CyberPower. ArchLinux contains a copy of it in the AUR: [https://aur.archlinux.org/packages/powerpanel/ linked here] + +The following files are then critical for configuration, after the USB device is connected to the monitoring host: +* /etc/pwrstatd.conf +* /etc/powerpanel/pwrstatd-email.sh +* /etc/powerpanel/pwrstatd-lowbatt.sh +* /etc/powerpanel/pwrstatd-powerfail.sh +* /usr/lib/systemd/system/pwrstatd.service +}}A Nazara host is a gateway to accessing other hosts. It is a safeguard against admin error. + +## Etymology + +Nazara hosts are named because they are the first line of defense against administrative error -- they prevent admins from being locked out of correcting their changes. + +## Capacity and Components +A Nazara host needs minimal CPU or memory. + +## Hosted Services and Entities +Nothing is hosted by a Nazara. + +## Connections +Any host should be able to connect to a Nazara with [SSH](../Services/SSH.md) and X11, and it should be able to dial to any service provider. + +## Additional Reference +Nazara hosts should be deployed alongside any Hypervisor. They can be as simple as a Pi-hole with SSH access, and they should be allowed to receive SSH connections from a non-tcp/22/ssh port. +Print is the printer/scanner of the AniNIX, aimed at offering the option to convert materials from digital to physical and vice-versa. + +## Etymology=This entity is self-named. + +## Capacity and Components=A [[Category:Brother]]Brother MFC-J430W will fill this role nicely, with color printing, scanning, and (unused) faxing abilities. It can be easily installed from [https://aninix.net/foundation/ConfigPackages/ ConfigPackages]. + +## Hosted Services and Entities=There are no hosted aspects. + +## Connections={{Reference|Core}} +}}[[Category:TODO]]Roomba is a cleaning bot for the AniNIXRufus is an overlay to make use of unused clock cycles on AniNIX hardware. It allows the AniNIX to take what would otherwise be wasted power and network presence and put it to either profit or charity. + +## Etymology=Rufus is named after the naked mole rat from the Kim Possible TV series; a ubiquitious companion to the protagonists, Rufus' species is also capable of great feats of digging, given their traditionally subterranean habitat. The Rufus system is equally useful at mining resources for the AniNIX, keeping it online. + +## Capacity and Components=Capacity depends on the number of rigs available. A "rig" may simply be a [[Geth/Hub|AniNIX::Geth hub]], a running VM, or a full-featured rig. + +Our full-featured rigs are built from cheap consumer-grade parts.[https://www.youtube.com/watch?v=3YMxGGXme8g Motherboard Ethereum mining presentation], accessed 2/5/18]. We have a list of our current desired parts at [https://secure.newegg.com/Wishlist/SharedWishlistDetail?ID=vcB3403ONPRZhXHgzQNC%2fg%3d%3d Newegg]. + +## Hosted Services and Entities +### Ethereum +[https://ethereum.org Ethereum]https://wiki.archlinux.org/index.php/Ethereum is a decentralized currency and contract blockchain. + +Install and upgrade python3. From that, we can install [http://raspnode.com/diyEthereumPyeth.html PyEthApp] to mine the currency. +
+pip3 install pyethapp ++ +Multiple miners can be supported in a single network, but port 30303 must be forwarded to the first node. Other nodes in the cluster will connect their ethminer to that node. + +Funds can be transferred to an Ethereum wallet by TODO.[[Category:TODO]][[Category:Coinbase]] + +### Bitcoin +Bitcoinhttps://wiki.archlinux.org/index.php/Bitcoin is another decentralized blockchain currency -- in fact, it was the first and most popular. + +Mining is done by connecting GPU's or [https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=Raspberry+pi+ASIC+bitcoin ASIC miners] to your host. From there, install bfgminer and benchmark the attached ASIC's. This can be done by standalone block mining or pool mining, where a group of miners agree to mine for the same block through shared and decentralized work. + +When satisfied with the operation of the benchmarking, bfgminer can be run with all hardware and a Coinbase address to receive the funds. + +### Folding@Home +[https://foldingathome.org/ Folding@Home]https://wiki.archlinux.org/index.php/Folding@home is a Stanford project for protein folding research, helping researchers solve disease problems. This is our premiere project for our [https://aninix.net/pages/charity.php charity work]. + +Install the [https://aur.archlinux.org/packages/foldingathome/ Folding@Home package] from Stanford. This will allow you to receive units of work from Stanford and process them. + +### BOINC +[http://boinc.berkeley.edu/ BOINC] is a Berkley project for supporting underfunded research projects by allowing open computing resources. + +Install the [https://www.archlinux.org/packages/?name=boinc-nox boinc-nox]https://wiki.archlinux.org/index.php/BOINC package from Berkley. Enabling the service will use your compute resources for the needy projects. + +## Connections=Rufus runs on any available hardware. + +## Additional Reference=[https://aninix.net/irc/ Contact an admin] for current ROI -- example math can be seen in [https://www.youtube.com/watch?v=8eXI_7O4Svc this presentation]. Also, [https://www.youtube.com/watch?v=U_LK0t_qaPo this presentation] offers an overview of how Ethereum the protocol works.}} +## ReferencesThe Shadowfeed is the networking gateway between the AniNIX and the outside world -- it broadcasts the AniNIX signal and allows the network to communicate. + +## Etymology +The Shadowfeed is named after a resistance communications network in the Star Wars universe. The [http://starwars.wikia.com/wiki/CIS_Shadowfeed Shadowfeed] was a disseminated network routed through existing communications technology, allowing a separatist movement to broadcast its message. + +## Capacity and Components +The Shadowfeed is an Netgear R7000 Nighthawk router hardware flashed with DD-WRT firmware.[[Category:DD-WRT]][[Category:Netgear]] It can hold numerous clients wirelessly, and it supports wired USB 2.0 and 3.0 hard-drives to create simple NAS storage. There are five physical slots, one occupied by wired connection to the Forge2 frame, one by a connection to the Verizon wireless tower, and one to the Infrastructure. One remaining slot is free with a 100ft Cat5e cable and the other reserved for hotswap in case of port failure or LAN need. + +Note: the best place we've found to grab firmware updates is [https://ddwrt-kong.clonevince.fr/ this upload site for Kong's builds]. Ensure that you are on build 33525 or later to avoid being vulnerable to [https://aircrack-ng.blogspot.com/2017/10/krack-wpa-vulnerability-key.html KRACK]. Follow the instructions [https://dd-wrt.com/wiki/index.php/Installation from the DD-WRT Wiki] to flash your router with new firmware or to patch. Make sure to watch for the peacocking notes! Use the dork "kong dd-wrt build
+iptables -t nat -I PREROUTING -p tcp -d $(nvram get wan_ipaddr) --dport 3389 -j DNAT --to 10.0.1.2 [ -s SourceIP ] +iptables -I FORWARD -p tcp -d 10.0.1.2 --dport 3389 -j ACCEPT +iptables -t nat -I PREROUTING -p udp -d $(nvram get wan_ipaddr) --dport 3389 -j DNAT --to 10.0.1.2 [ -s SourceIP ] +iptables -I FORWARD -p udp -d 10.0.1.2 --dport 3389 -j ACCEPT ++### Direct config alteration +nvram show will get all the current options, whereas nvram get variable will return a variable. + +nvram set or unset change variables. + +nvram commit pushes the change. + +### Guest Wifi +[https://dd-wrt.com/wiki/index.php/Guest_Network See here.] + +### Sample Startup Script +The following will insert firewall lines into your sample startup script to harden your network edge. This allows [[WebServer|web]], [[SSH]], [[IRC]], [[Geth|AniNIX::Geth]], and [[Nazara|bastion]] access through the firewall, dropping all others. It also sets up the block chain for [[Cerberus|AniNIX::Cerberus]]. + +
+iptables -N severe +iptables -I INPUT 2 -i vlan2 -j DROP +iptables -I INPUT 2 -i vlan2 -p tcp -m tcp --dport 22 -j ACCEPT +iptables -I INPUT 2 -i vlan2 -p tcp -m tcp --dport 80 -j ACCEPT +iptables -I INPUT 2 -i vlan2 -p tcp -m tcp --dport 443 -j ACCEPT +iptables -I INPUT 2 -i vlan2 -p tcp -m tcp --dport 6641 -j ACCEPT +iptables -I INPUT 2 -i vlan2 -p tcp -m tcp --dport 6697 -j ACCEPT +iptables -I INPUT 2 -i vlan2 -p tcp -m tcp --dport 9022 -j ACCEPT +iptables -I INPUT 2 -j severe +iptables -I FORWARD -j severe ++}}|Tachikoma|Tachikoma are individual user or service machines.| +word +These are named after [https://www.youtube.com/watch?v=lNY53tZ2geg Tachikoma from Ghost in the Shell]. These AI-powered tanks offered personal transportation, concealment, + +## Capacity and Components +Capacity is indeterminate -- depends on the hardware being used. + +## Hosted Services and Entities=No services should be hosted for Tachikoma, despite [[SSH|an SSH server for remote access]]. + +## Connections=Varies by purpose}}Omnitool is a mobile smartphone client of the network. + +## Etymology +The Tricorder is named after the fictional and ubiquitous devices from the Star Trek universe. Because the Tricorder is useful in a number of situations, hand-held in the same way, and is almost always handled by an Admin save during sleep, the name was apt. + +Besides, we like the subtlety, craftiness, and paranoia of the Romulans. + +## Capacity and Components +This is a Verizon Wireless Droid Turbo smartphone running the Android OS. [[Category:USCellular]][[Category:Google]] +* 48 hours of usability +* 5.2" Gorilla Glass 4 Display with 1920x1080 resolution +* 32 GB of onboard storage, encrypted with Android PIN +* Microphone +* 16MP Camera +* CDMA, GSM, WCDMA, UMTS, LTE Network-capable with US Cellular SIM + +## Hosted Services and Entities +The Tricorder can host a couple remote-management tools. +* Apps can be remotely installed with [https://play.google.com/ Google Play Store]. +* Location identification, remote locking, and remote wiping can be achieved with [https://google.com/android/devicemanager Google Device Manager]. +* SMS, notifications, and call response can be remotely controlled with a vivoactive HR or [https://aninix.net/wiki/Subscriptions##Pushbullet Pushbullet]. + +## Connections +This device has clients for the following entities. +{{Reference|Singularity}}{{Reference|Yggdrasil}}{{Reference|Eyes}}{{Reference|SSH}} +This device physically can connect to the following. +{{Reference|Infrastructure}}{{Reference|Shadowfeed}}{{Reference|Forge2}} +This device can also extend Bluetooth and WiFi technology to the following devices, to extend the AniNIX's reach. +* Drones, such as the Parrot AR.Drone 2.0, over WiFi +* Smart devices, like the Garmin vivoactive HR smartwatch or smart scales, over bluetooth +* Car and other stereos over Bluetooth (this is particularly useful for playing back audio from Yggdrasil) +* Bluetooth-capable devices for file transfer +* WiFi-capable devices via ad-hoc WiFi network + +## Additional Reference +* [https://www.lg.com/us/cell-phones/lg-US701-Black-us-cellular Reference page] +* [https://memory-alpha.wikia.com/wiki/Romulan_tricorder Star Trek Wiki page] +### Recovery Path +Please encrypt your Tricorder for privacy reasons. For those concerned, here is your recovery path, should the device be rendered inoperable or inaccessible. +* The Google Play Store records all applications installed on the phone. +* Music, pictures, and video should be replicated from [[Yggdrasil|AniNIX::Yggdrasil]]. Please use an [[SSH|SFTP]] client to regularly store your necessary files on your AniNIX account, or upload your files to a trusted storage service. For insecure files, [https://drive.google.com Google Drive] is sufficient and free. +* Customizations will be lost but should be easily recreated. +* SSH Keys should be recreated. Remove any existing public keys from servers the device had access to. +* Android devices can be remotely wiped, locked, or pinged from Android Device Manager. + +Most severe problems with an Android device can be fixed with a factory reset, patching, app re-installation from the Play Store, and pulling down any desired files. While this is a cumbersome process, for non-rooted, encrypted devices, this is often the easiest route. +}} +{{Mobile}}: Warning: Windows may reformat non-Windows partitions with no warning during boot. We recommend keeping strong backups and controlling when Windows Update runs. See [http://www.omgubuntu.co.uk/2016/08/windows-10-anniversary-update-delete-partition OMGUbuntu's article] for end user experiences. +Windows is a ubiquitous desktop environment for home computing, still compromising the majority of the market. The AniNIX hosts a virtualized Windows host to access the tools and software developed for that OS. + +## Etymology +The Windows host is named for the OS it runs. + +## Capacity and Components +Windows' components are provided by Microsoft. [[Category:Microsoft]] The Windows host is granted networking, USB assignments, the GTX 760 pair, 2TB of storage, 8 GB RAM, and 4 cores from [[Forge2]]. + +## Hosted Services and Entities +{{Reference|Games}}{{Reference|VirusScan}} +### Customization +There is a desktop theme available to skin the Windows desktop environment in the same fashion as [[ShadowArch]], the WebServer and the Wiki. Download it from [https://aninix.net/aninix.deskthemepack this link]. +### Standard Packages +Available from [https://aninix.net/wolfpack WolfPack's repo]: +* SeaMonkey Browser + * Chrome Browser can be used in place of SeaMonkey or in addition to support Chromecasts. +* PuTTY Terminal Emulator +* WinSCP File Transfer +* Launchy to emulate Linux Alt+F2 running +* VNC viewer +* Xming X11 server +* DaemonTools Lite for mounting ISO's. + +### Hypervisor Role +A Hypervisor should also be deployed. +* A Windows 10 Pro license offers Hyper-V, which allows enterprise-style VM availability +* VMWare Workstation or VirtualBox are also alternatives. + +### Work Role Packages +* WebEx +* AnyConnect +* One productivity suite from: + * LibreOffice + * Microsoft Office +* Notepad++ + +## Connections +{{Reference|Forge2}}{{Reference|Shadowfeed}}{{Reference|Infrastructure}} + +## Additional Reference +Remember the following things when dealing with Windows: +* Windows updates and upgrades stand a very good chance of being destructive to other systems and itself. Never upgrade without a backup, and everything installed on Windows should have an independent recovery plan. See [[Games##Recovery]] for an example. +* Windows tries to send data to Microsoft. Check account settings to opt out. +* Always disable autorun to help slow malware. + +### Unified Credentials +Install [https://pgina.org/ pGina] for LDAP authentication, including with [[Sora|AniNIX::Sora]].[[Category:LDAP]] +}} diff --git a/Layouts/Security_Layout.md b/Layouts/Security_Layout.md deleted file mode 100644 index 75a700e..0000000 --- a/Layouts/Security_Layout.md +++ /dev/null @@ -1,68 +0,0 @@ -This offers a detail of the security hierarchy of the AniNIX, which is layered in the following sections. - -# Physical security -Physical security includes storing the [[Forge2]] in a locked second-floor building. [[Cerberus]] offers reporting on events in this location. Admins co-locate with this location and are trained in combat and close quarters defense. Physical intrusions will be rebuffed to the fullest extent of the law. - -# Network/Software protection -{{Organizer|Firewall| -{{Organizer|Shadowfeed| -{{Organizer|Trusted DMZ| -{{Reference|DarkNet}} -{{Organizer|Core| -{{Organizer|Cerberus| -{{Organizer|Firewall| -Most of the services in the AniNIX are monitored by network-level intrusion detection -## Open-access Services -{{Reference|WebServer}}{{Reference|TheRaven}}{{Reference|Foundation}}{{Reference|Heartbeat}} -## Password-Restricted Services -{{Reference|IRC}}{{Reference|Wiki}}{{Reference|Yggdrasil}} -## Remote Access -{{Organizer|Cerberus| -The SSH service supports password and key authentication. -{{Reference|SSH}} -|Cerberus}} -}} -|Cerberus}} -|Core}} -{{Organizer|Windows| -{{Organizer|Firewall| -{{Reference|Games}} -}} -|Windows}} -}} -{{Organizer|Guest DMZ| -Any visitors to the AniNIX premises are given access to the outside Internet via the Shadowfeed, but this access is isolated away from AniNIX systems. -}} -|Shadowfeed}} -}} - -# Filesystem security -{{Organizer|Forge2| -{{Organizer|Cerberus| -{{Organizer|VirusScan| -The Hypervisor content lives here. -|VirusScan}} -|Cerberus}} -{{Organizer|Core| -{{Organizer|LUKS-on-LVM Volume| -{{Organizer|Cerberus| -{{Organizer|VirusScan| -Most of the data lives inside these layers. -|VirusScan}} -|Cerberus}} -}} -|Core}} -{{Organizer|Windows| -{{Organizer|VirusScan| -The Windows data lives here. -|VirusScan}} -|Windows}} -|Forge2}} - -# Backups -[[Windows]] and [[Core]] are backed up locally on mirrored, non-RAID disks. They are also backed up to a 4TB hard drive from the [[Forge2]] to an off site safety deposit box in a bank, making it very difficult to destroy all copies of these hosts. - -Should all backups be lost, the [[Aether]] project also backs up Core's critical configuration files and a list of files in [[Yggdrasil]] to an anonymous list of servers. [[Grimoire]]'s databases are independently archived to a password-based tarball and stored in cloud storage. - -[[Category:Security]] -[[Category:Layout]] \ No newline at end of file diff --git a/Layouts/Service_and_Host_Layout.md b/Layouts/Service_and_Host_Layout.md deleted file mode 100644 index 49fcc65..0000000 --- a/Layouts/Service_and_Host_Layout.md +++ /dev/null @@ -1,19 +0,0 @@ -{{Reference|Holocron}} -{{Organizer|Infrastructure| -{{Organizer|Shadowfeed| -{{Reference|Tricorder}}{{Reference|Geth}}{{Reference|Bastion}}{{Reference|Print}}{{Reference|TeamRed}}{{Reference|TeamGreen}}{{Reference|TeamBlue}} -{{Organizer|Forge2| -{{Organizer|Windows| -{{Reference|Games}} -|Windows}} -{{Organizer|Core| -{{Reference|Aether}}{{Reference|Cerberus}}{{Reference|Foundation}}{{Reference|Geth}}{{Reference|Grimoire}}{{Reference|Heartbeat}}{{Reference|IRC}}{{Reference|TheRaven}}{{Reference|Singularity}}{{Reference|Sora}}{{Reference|SSH}}{{Reference|WebServer}}{{Reference|Wiki}}{{Reference|WolfPack}}{{Reference|VirusScan}}{{Reference|Yggdrasil}} -|Core}} -{{Organizer|DarkNet| -{{Reference|VirusScan}}{{Reference|WolfPack}} -|DarkNet}} -|Forge2}} -|Shadowfeed}} -|Infrastructure}} - -[[Category:Layout]] \ No newline at end of file diff --git a/Operation/Archive/RCAs_2016-2018.md b/Operation/Archive/RCAs_2016-2018.md deleted file mode 100644 index debe3bd..0000000 --- a/Operation/Archive/RCAs_2016-2018.md +++ /dev/null @@ -1,66 +0,0 @@ -{{DowntimeRCA|Windows Update Failure|cause -As background, [[Windows|AniNIX::Windows]] was installed originally as Windows 7 Home. It was later upgraded to Windows 10 Home and then Windows 10 Pro to add functionality for Hyper-V and Remote Desktop (though only to targeted IP's -- this service is considered a convenience and a vulnerability). - -The AniNIX was brought down after a Windows update on 8/24/2016. The AniNIX had had other downtimes recently on calls with Microsoft as the Windows cdrom.sys driver was not recognizing drives that were ostensibly plug-and-play. Many fixes, including reordering SATA slots, registry updates, calls with drive manufacturers for drivers, adding/removing the hardware in Device Manager, etc. had been tried and not succeeded. This issue was on hold at the time of the update. - -When Windows started again, it would only flash a "CRITICAL_PROCESS_DIED" error message. Booting with [[Holocron|AniNIX::Holocron]] showed no memory issues or other hardware problems. Using a Windows installation medium (on USB), we were not able to restore to a system restore point before the update or correct the issue with the installation. We were also not able to access the prior system images taken with the Windows backup utility. - -Discussions with Microsoft indicate that the upgrades fro Windows 7 to Windows 10 Pro had suffered silent failures that were not logged to the user. While the operating system would limp along in functionality, it was unable to be repaired and required a reinstall. -|length=~24 hours -|resolution - -At this point, the [[Forge2|AniNIX::Forge2]] frame was disconnected and all SATA lines except for the 60GB SSD were severed. Windows 10 Pro was re-installed to this disk, and display drivers were re-installed. The standard and Hypervisor packages were re-installed. [[Games]] were left to be rebuilt over time. - -The frame was then brought down again and other drives reconnected, with the exception of the original Windows 10 drive. This drive will be left disconnected and system images abandoned short-term as a form of backup. Instead, backups will be taken of all installers used during the recovery process along with the Windows 10 Pro product key and registry. -|commits -}} - -{{DowntimeRCA|Windows Virtual Disk Failure|cause -On 9/17/2016, the [[Forge2#Hypervisor_Notes|AniNIX::Forge2]] Hypervisor logged error messages about a reset being sent to the RAID1 device, an [[Windows]] warning-level event with an id of 129 and source storahci. From then on, every five seconds, error messages were logged about disks: "An error was detected on device \Device\Harddisk1\DR1 during a paging operation." with an error ID of 51 and source of disk. Also every five seconds, NTFS error of id 140 was logged with the error message "The system failed to flush data to the transaction log. Corruption may occur in VolumeId: F:, DeviceName: \Device\HarddiskVolume1. (A device which does not exist was specified.)". - -These error messages occurred silently for several hours. Finally, on trying to access a mounted virtual disk inside [[Core|AniNIX::Core]] on 9/18/2016, ArchLinux displayed a cascade of block update failures and required a reboot. All virtual machines on the Forge2 were to be rebooted, but none came up as Hyper-V could not detect the disks. The entire frame was restarted, VM definitions repaired manually, and services restored. - -This issue recurred a few days later and perhaps once a week after. -|length=6 hours over a series of downtimes -|resolution=Hyper-V resource files and executables were excluded from antivirus scanning. When the antivirus didn't respect this, we dropped antivirus from the Hyper-V host. -|commits=[https://aninix.net/mediawiki/index.php?title=Forge2&type=revision&diff=722&oldid=712 Wiki change] -}} - -{{DowntimeRCA|Windows Update Service Reboots|cause -The Windows Update Service, if it does not see a reboot recently, will reboot the host to install updates. This causes downtimes on the [[Core]] VM and other service VM's; remote recovery has also been made difficult by BIOS randomly changing the boot device. - -Thanks to Mathisen from ##windows on Freenode, we found a GPO we're testing. Set the "gpedit.msc > Computer Configuration \ Administrative Templates \ Windows Components \ Windows Update \ Configure Automatic Updates" option to Enabled and "Notify to download / Notify to install". This should stop automatic reboots but requires a Pro or Enterprise license. -|length=2 hours from unattended host -|resolution=Apply Group Policy. -|commits -https://aninix.net/mediawiki/index.php?title=Forge2&type=revision&diff=767&oldid=722 -}} - -{{DowntimeRCA|Charter ISP Outage|cause -At 0043 CST on 11/18/2016, the Charter Residential modem lost connectivity with the wider Internet. Service was not restored until 6:45 a.m., and the admin was physically away from the system. At 1045 CST same-day, a direct check of the IP address luckily showed that the AniNIX had recovered its original IP before the outage. -|resolution -Admins have changed ISP contracting to be notified immediately of outages and resumption of service. - -The upcoming changes to the [[Cerberus|AniNIX::Cerberus]] project will include detection of changes in WAN IP and will notify admins of changes so that the remote DNS can be updated. Admins will also investigate dynamic DNS services.[[Category:TODO]]. -|length=6 hours of technical downtime, extended to 10 hours of practical downtime by a lack of reporting tools on ISP outages. -|commits -* [https://aninix.net/mediawiki/index.php?title=Incident_Response&type=revision&diff=769&oldid=741 Wiki]}} - -{{DowntimeRCA|Windows Sleep Hangs Core VM|cause=Admin Error -- accidentally clicked sleep during RDP disconnect -|length=8 hours -|resolution=I was able to access the [[Shadowfeed|AniNIX::Shadowfeed]] and [[Forge2|AniNIX::Forge2]] entities by port forwarding through [[Bastion|AniNIX::Bastion]] from my [[Tricorder|AniNIX::Tricorder]], as I was offsite. I was able to restart [[Core|AniNIX::Core]] and supply passphrases to unlock the storage. - -This downtime was exacerbated as I did not check [[Heartbeat|AniNIX::Heartbeat]] after resuming the hypervisor. - -We've added notes for removing sleep options on servers and remote Heartbeat monitoring in response to this incident. -|commits=* [https://aninix.net/mediawiki/index.php?title=Forge2&curid=64&diff=984&oldid=932 Wiki for Forge2 notes] -* [https://aninix.net/mediawiki/index.php?title=Heartbeat&curid=83&diff=985&oldid=980 Wiki for Heartbeat notes] -}} - -{{DowntimeRCA|Windows Wake Hangs Hypervisor|cause=Code issue|length=30 minutes|resolution=All services were restarted.|commits=None yet. I plan to move Bastion to its own host, and to ensure Forge2 runs VMware ESXi rather than Hyper-V. This will take time and planning.}} - -{{DowntimeRCA|Alliant Energy Outage|cause=Power company|length=9 hours|resolution=AniNIX staff noticed connections drop to AniNIX services on 2018-09-18 12:05 CDT. At this point, power had already been out for 22 minutes and UPS power was exhausted, resulting in a shutdown of AniNIX hardware. Alliant notified AniNIX on-site admins 40 minutes later of the outage, and power was restored by 16:00. Unfortunately, AniNIX staff were not able to resume service operation until 21:15.|commits=We will add monitoring either through [[Nazara|AniNIX::Nazara]] or [[Forge2|AniNIX::Forge2]] of the UPS, but this will not prevent an outage. The [[Forge3|rebuild]] may improve uptime capacity, but until a generator is on-premise, this outage is unpreventable. That generator cost will take significant time to defray.}} - -{{DowntimeRCA|Charter ISP Outage|cause=ISP|length=4 hours|resolution=AniNIX on-site admin detected the outage at 2018-10-04 00:05 CDT and restarted modem hardware on-site several times. When this didn't work, the admin contacted the ISP and reported the outage. ISP acknowledged the outage and field techs were sent to repair the outage in the area. Service was restored at 04:10 CDT|commits=None. Our Zapier/Freshping alerting service worked appropriately, and [[Sharingan|AniNIX::Sharingan]] sent out notifications as designed when service resumed.}} - -[[Category:RCA Archive]] \ No newline at end of file diff --git a/Operation/Design_Scope.md b/Operation/Design_Scope.md deleted file mode 100644 index be50346..0000000 --- a/Operation/Design_Scope.md +++ /dev/null @@ -1,34 +0,0 @@ -I'm defining scope for the various [[:Category:Service|services]] and special-use [[:Category:Entity|entities]]. Use this as a reference for [[Design Principles|design review]]. [[Category:Layout]] - -# Infrastructure -* [[SSH]] for read-write access to servers -* [[WebServer]] for server read-only and application access -* [[Grimoire]] for data storage -* [[Shadowfeed]] for networking -* [[Infrastructure]] for providing resources like power, cooling, and connectivity to the outside world. -* [[Tricorder]] and [[ShadowArch]] for end-user environments. - -# Maintenance -* [[Aether]] for backups -* [[Heartbeat]] for monitoring -* [[Maat]] for regular regressions - -# Security -* [[Sora]] for authentication -* [[Cerberus]] for intrusion detection/prevention -* [[VirusScan]] for malware -* [[DedSec]] for penetration testing -* [[DarkNet]] for privacy -* [[Cerberus]] for testing patches - -# Content -* [[Yggdrasil]] for media -* [[Wiki]] for documentation -* [[Singularity]] for news -* [[IRC]] for communication -* [[Foundation]] for code - -# Special Interest -* [[Geth]] for real-world interaction and automation -* [[TheRaven]] for artificial intelligence -* [[Holocron]] for portable toolsets. \ No newline at end of file diff --git a/Operation/How_to_Get_Involved.md b/Operation/How_to_Get_Involved.md deleted file mode 100644 index 43160fa..0000000 --- a/Operation/How_to_Get_Involved.md +++ /dev/null @@ -1,22 +0,0 @@ -The AniNIX is currently recruiting user involvement. As such, we're providing some example background here for new persons, broken down by background. Unless a technical means is provided, your best method of passing along your feedback is [https://aninix.net/irc/ the IRC web client] or [[IRC|your own IRC client]]. Thank you to everyone who is contributing now! -[[Category:Operation]] - -# Everyone -Everyone should be willing to report issues with AniNIX software, documentation, or provided services -- connect to [[IRC|AniNIX::IRC]] to report these issues. Also sign into this service if you have an idea for new functionality, enhancements or other improvements the AniNIX should be considering! - -# Administrative, Legal, or Business Staff -Administrative, legal, or business staff are especially encouraged to review the mission statement, design principles, and development best practices in [[:Category:Operation]]. This is the "business" and "legal" model on which the AniNIX runs and is currently vague in non-technical aspects. - -# Artists -Graphic designers are encouraged to review [https://aninix.net/style.css the CSS stylesheet] and [[Special:NewFiles]] to help provide artistic direction. The current aim is a near-terminal like look with white-and-black icons surrounded by red hexagon. Review [[Design_Principles#Graphical_Design|our design principles for graphics]] to understand our motivations and aims. We welcome criticism and debate on these points. - -# Educators -Educators will be exceptionally helpful in reviewing documentation. Anything on this Wiki could be reviewed for clarity and understanding. If concepts aren't adequately explained we need to know so that we can link to wider documentation or clarify. - -Of particular interest to educators is [[:Category:Class]]. These are offerings from the AniNIX personnel are used in demos and for teaching, and we could always use review and comments on our methodology. - -# Physical Activity Professionals -The [[Martial_Arts/Cardio|cardio]] page could always use new exercises or providers to follow. - -# Technical Personnel -These folks are the core of the AniNIX contributing community. This wiki and [https://aninix.net/foundation the Foundation git repo] need review and comments. Submit [[QANs]] as you see the need. \ No newline at end of file diff --git a/Operation/Incident_Reports.md b/Operation/Incident_Reports.md index 727d086..c917bd8 100644 --- a/Operation/Incident_Reports.md +++ b/Operation/Incident_Reports.md @@ -1,26 +1,3 @@ -These are cybersecurity incidents that the AniNIX has had to remedy due to some failure in our detection and prevention systems. - -**Note**: We explicitly exclude routine incidents, such as IP's banned for SSH brute-force, files quarantined after virus scanning, and other routine housekeeping. - -# January 2018 Spambot Detection -An attacker used a default password to pull down a Perl SMTP spambot and email list to spam fake Bank of America emails to users, attempting to phish them into clicking an xplotica link. - -* When: 11-29-2017 through 1-4-2018 -* Who: IRL identity unknown; last source IP 196.52.32.4 (Netherlands residential) -* What: Spambot -* * Vector: Attacker used a default password to access a monitoring user account; spambot and target lists were downloaded from a GoDaddy webhost (now nonfunctional). - -Detection was provided by the ISP and [https://www.abusix.com/ Abusix]. The Postfix service was shut down, and forensic analysis performed starting with the /var/spool/mail folder and tmux session capture. - -# Impact -This has negatively impacted the AniNIX's reputation as an SMTP source -- we are following up with Abusix and Google to restore our reputation. - -Current forensic investigation does not indicate a compromise to any AniNIX privileged information. - -## Our Response -* Monitoring user password has been rotated on all systems. -* Automatic password rotation for service accounts will be added to the service deploy automation. -* Sharingan needs updates to better monitor lastlog output and the sshd "Accepted" regex in journald. Postfix will be evaluated for appropriate MTA settings and restored to service later. - -Contact an admin for access to incident files. +These are cybersecurity and availability incidents that the AniNIX has had to remedy due to some failure in our detection and prevention systems within the last two years. +**Note**: We explicitly exclude routine incidents, such as IP's banned for SSH brute-force, files quarantined after virus scanning, and other routine housekeeping. We are also not including maintenance outages or short-term (<8 hours) ISP events. diff --git a/Operation/Incident_Response.md b/Operation/Incident_Response.md index 0dc30f9..dffcf0a 100644 --- a/Operation/Incident_Response.md +++ b/Operation/Incident_Response.md @@ -1,45 +1,35 @@ # CERT Grab-bag -CERT, or Computing Emergency Response Team, is an acronym for first-responders to cybersecurity and computing incidents. +[CERT][1], or Computing Emergency Response Team, is an acronym for first-responders to cybersecurity and computing incidents. The FBI maintains a cyber incident reporting service -- should the incident be of a sufficiently malicious nature, it should be reported to the authorities. See [https://www.fbi.gov/file-repository/law-enforcement-cyber-incident-reporting.pdf/view this whitepaper] for a breakdown of how to report. CERT individuals should keep a copy of the following things at all times in a grab-bag: * The above whitepaper for FBI contacts -* The [https://aninix.net/mediawiki/index.php?title=Template:Incident_Report&printable=yes AniNIX CERT Form] -* Copies of [[Category:Layouts|AniNIX layouts]] +* An up-to-date Git clone of this Wiki +* Laptop and mobile phone +* Any phyical-security tools +* Kali Linux and ArchLinux ISOs in ready-to-boot format * Scratch paper and thumb drives for evidentiary capture, along with chain of custody labels -[https://www.youtube.com/watch?v=PhROeWMPBqU Skillset via YouTube], accessed 1/4/18 # Incident vs. Disaster -An incident is an unplanned event affecting a service or agency, where a disaster reflects multiple services or agencies.[https://www.linkedin.com/learning/introduction-to-ethical-hacking/information-security LinkedIn Intro to Ethical Hacking Course] by Lisa Bock A catastrophe is defined as one-step worse -- a destruction of AniNIX software and hardware necessitating rebuilding the same and likely a relocation of any operations and facilities. +An incident is an unplanned event affecting a service or agency, where a disaster reflects multiple services or agencies. A catastrophe is defined as one-step worse -- a destruction of AniNIX software and hardware necessitating rebuilding the same and likely a relocation of any operations and facilities. # Required Follow-ups : See TOGAF, COBIT, and ITIL standards for design methods for incident response. Also available is documentation from [https://duckduckgo.com/?q=NIST+Creating+security+plans+for+federal+information+systems&ia=web NIST] on how to formulate security plans. -If any disruption of service is caused, an [[RCAs|root-cause analysis (RCA)]] will be filed and users will be notified via [[Singularity|RSS]] and [[IRC]]. Alternatively, cybersecurity incidents will be documented as [[Incident Reports]] and deep-dives can be requested of AniNIX staff. +If any significant disruption of service is caused (more than 8 hours), an [Incident Report](./Incident_Reports.md) will be filed and users will be notified via [RSS](https://singularity.aninix.net), [IRC](https://irc.aninix.net), and all relevant social media. -As the AniNIX learns of better configuration processes or usage methodology, this Wiki will be updated, which will automatically notify users subscribed to [[Special:RecentChanges]] via RSS. +As the AniNIX learns of better configuration processes or usage methodology, this Wiki will be updated, which will automatically notify users via IRC. -Critical patches to AniNIX software and scripts should be added to [[Foundation|AniNIX::Foundation]] immediately with a proper commit message and notifications sent. +Critical patches to AniNIX software and scripts should be added to [AniNIX/Foundation](https://foundation.aninix.net/) immediately with a proper commit message -- with the right webhooks set, this will send a notification via IRC. # Service-level incident response -The AniNIX maintains onsite [[Security_Layout#Backups|backups]] -- the affected service will be stopped, repaired from best-effort backups, and restarted. Unaffected services will not be disrupted. +The AniNIX maintains onsite backups -- the affected service will be stopped, repaired from best-effort backups, and restarted. Unaffected services will not be disrupted. # Software Disaster Recovery Should a collective failure of software occur, all services will be stopped until the damage can be repaired. The AniNIX has onsite backups to this end. ## ISP events -In the event of an ISP event, a redundant method of providing access is available, but some services will be significantly limited or disabled to limit bandwidth usage. If ISP's are unavailable, admins should send the following: - -:Hello, all, - -:Internet access to the network is currently unavailable. To meet with an admin or check on the status, please visit the AniNIX Discord Channel. We will let you know when services are back. - -::**Attach Discord static invite here** - -:Thank you for your patience. -:AniNIX Admins - -Admins should also keep a list of [[Sora|registered users]]' emails in a local location -- we recommend storing them in an [[Tricorder|AniNIX::Tricorder]] along with the last known good IP of the AniNIX. +In the event of an ISP event, a redundant method of providing access is available, but some services will be significantly limited or disabled to limit bandwidth usage. If ISP's are unavailable, admins should notify @everyone on Discord and stay available until access is restored. # Hardware Incident Response In the event of the failure of a redundant or unnecessary hardware component, an admin will: @@ -56,12 +46,13 @@ Should hardware critically fail, the AniNIX does not currently have a support ag If necessary, restoration from the safety-deposit backup will be utilized. # Complete Disaster Recovery -In the event of a complete disaster, the first line of defense is a hard-drive stored in a safety deposit box with a complete backup of the [[Core|AniNIX::Core]] VM, which includes the source code to rebuild all other machines. +In the event of a complete disaster, the first line of defense is a hard-drive stored in a safety deposit box with a complete backup of the AniNIX/Core VM, which includes the source code to rebuild all other machines. # Catastrophic Loss Or Attack -Should all else have been compromised, a large number of [[Aether|AniNIX::Aether]] nodes will allow rebuilding the system from source code, though there will be a massive loss of data. Some of this will be recoverable over time through file lists stored in the Aether packages, but other data will be lost. This is the last-ditch recovery method. +Should all else have been compromised, a large number of [AniNIX/Aether](/AniNIX/Aether) nodes will allow rebuilding the system from source code, though there will be a massive loss of data. Some of this will be recoverable over time through file lists stored in the Aether packages, but other data will be lost. This is the last-ditch recovery method. AniNIX admins maintain "bug-out" bags for massive environmental, political, or criminal disturbances, with copies of the Aether package on encrypted storage. They are trained to safely self-evacuate and rebuild the network in a safe location. This recovery method will take a long time to effect; users should watch the aninix.net domain name for a return of some IRC daemon with which to use to communicate with admins. As soon as possible, admins will reach out to the userbase to announce when services will be restored, the reason for loss of service, and the extent of data loss. -# References -[[Category:Operation]] \ No newline at end of file + +[1]: https://www.youtube.com/watch?v=PhROeWMPBqU "Skillset via YouTube, accessed 1/4/18" +[2]: https://www.linkedin.com/learning/introduction-to-ethical-hacking/information-security "LinkedIn 'Intro to Ethical Hacking Course' by Lisa Bock" diff --git a/Operation/Manual_of_Style.md b/Operation/Manual_of_Style.md index 3c9ca62..a84a9f5 100644 --- a/Operation/Manual_of_Style.md +++ b/Operation/Manual_of_Style.md @@ -2,85 +2,24 @@ This is intended to give contributors a baseline for editing. # Proper naming Services on this network are properly titled in the below format. This should always be used the first time a service is referenced. -
AniNIX::{ServiceName}[/{Area}][ \\ {Title}]+``` +AniNIX/{ServiceName}[ | {Area}] +``` # Grammar -Grammar is a writer's toolbox. You can't build good sentences without knowing how to use your tools. Since a wiki article should be as clear as possible for all those reading it, editors should keep their edits as grammatically correct as is possible, in order to ensure clear communication of the information being provided.[http://assassinscreed.wikia.com/wiki/Assassin's_Creed_Wiki:Manual_of_Style Assassin's Creed Wiki MoS] - -## Capitalization -Words should be capitalized at the start of each sentence, and when they are denoting a name or title, in line with current grammatical precedent, for example: - -::"The Aether project should be used to back up critical servers." - -## Titles of works -Titles of works should be italicized to make clear that they are names; the titles of articles, chapters, and other short works should not be italicized, but are enclosed in double quotation marks. +Grammar is a writer's toolbox. You can't build good sentences without knowing how to use your tools. Since a wiki article should be as clear as possible for all those reading it, editors should keep their edits as grammatically correct as is possible, in order to ensure clear communication of the information being provided. Follow proper English language standards. # Writing Style -:*“I believe the road to hell is paved with adverbs”* -- Stephen King +_Be concise._ Professionals are already taxed for time to maximize their utility; they need clear, direct language to understand what needs to be done. In this simplicity of purpose beauty is found, not in flowerly, lengthy prose. -We now come to the meat of an article: the words themselves. When you're editing wikis, you're both academic and artist. You have to be accurate, but you also have to be interesting. Neither one can dominate; you have to skillfully balance both. +_Contain your scope._ Avoid letting your scope creep beyond what is meaningful to the task at hand; documentation should be like the tools being described: narrowly defined, and deeply explored. -**Keep your writing concise.** Don't use two words where one will do. Keeping your writing simple will make it easy to understand and easy to expand on. Use complete sentences whenever possible. When you write, use grammar as a toolbox: know the rules, but only break them on purpose. +_Be impersonal._ Avoid making statements that indicate personal preference as an authority; rather, indicate why what's being done is the best available. -**Check your spelling and grammar.** Do not use 'u' in place of 'you' or '2' in place of 'to'. Write the way you would for a class paper or a newspaper article. - -**Keep all of the topics you cover within the scope of the article.** What that means is, you don't need to give a detailed history of all AI on the page about [[TheRaven|AniNIX::TheRaven]]. Consider the article's title as your point of origin and write from that perspective. Make use of the wiki's ability to link to more detailed articles or external sources for more information. - -**Write from an impersonal perspective.** Do not use "I." For example, do not write, "In the years that followed, Ezio began a quest to rediscover the lost history of the Order,
[[Image:CoolImage.png|thumb]]
) option which displays large images as thumbnails. Images should generally be right aligned to enhance readability by allowing a smooth flow of text down the left margin - the "thumb" option does this by default. If an infobox is not being used in an article, a right aligned picture in the lead section is encouraged.
-
-Images should be kept to a minimal number -- three or fewer inline images per article. High-quality images should be stored in [[Yggdrasil|AniNIX::Yggdrasil]].
-
-### Galleries
-When an article has many images, or can be improved by having more, and having inline images can detract from its readability, the use of a
section is encouraged. See the [[#Useful_Snippits|Useful Snippets]] for how to implement that.
-
-Galleries should be five images or less. More images than that or exceptionally high-quality images should be in [[Yggdrasil]].
+We generally will not use images in these projects -- very little is represented better as images than as code snippets for a deep infrastructure system like the AniNIX. If you do need images, generally speaking it is best to contact an AniNIX admin to distribute the image via some CDN outside of Foundation, rather than committing it directly. Repos that are mirrored out to GitHub may be an exception.
# Useful Snippets
-## Tables
--{|class="wikitable" -|- -| Cell 1 || Cell2 -|- -|} --## Transclusion -This will include an entire other page in yours. -
{{:Wiki}}-## Links -Internal:
[[Wiki]]-External:
[https://aninix.net/root.php WebServer]-## Styling -
-*Bold* -**Italic** -- -## Images -
-[[File:Image|thumb|250px|right|Some caption]] -- -## Gallery -
-- -## If/then --Image:Example.jpg|Caption -Image:Example.jpg|Caption - -
{{#if:{{{add|}}}|==Additional Reference -{{{add}}}|}}- -[[Category:Operation]] \ No newline at end of file +See [the upstream syntax notes](https://daringfireball.net/projects/markdown/syntax) for examples. diff --git a/Operation/Mission_Statement.md b/Operation/Mission_Statement.md deleted file mode 100644 index 957801a..0000000 --- a/Operation/Mission_Statement.md +++ /dev/null @@ -1,6 +0,0 @@ -The mission statement of the AniNIX is simple: -1. Provide an example suite of services and serve a small userbase -1. Provide documentation and source code to allow anyone to replicate the system. -1. Contribute actively to the global community by involvement in the open-source community and charity work. - -[[Category:Operation]] \ No newline at end of file diff --git a/Operation/Provisioning.md b/Operation/Provisioning.md index 46bcb6e..e965099 100644 --- a/Operation/Provisioning.md +++ b/Operation/Provisioning.md @@ -3,66 +3,50 @@ Provisioning is the process by which new users, services, and hosts are added to # Users ## Notes on Administrative and Daemon Users -These users should always be created as local users. Daemon users should be given /sbin/nologin or /bin/false as their login shell to prevent them from doing bad things -- systemd service files will appropriately set UID/GID on processes and shells aren't needed. These daemon users should always have local credentials to be immune to failures in remote services like [[Sora]] +These users should always be created as local users. Daemon users should be given /sbin/nologin or /bin/false as their login shell to prevent them from doing bad things -- systemd service files will appropriately set UID/GID on processes and shells aren't needed. These daemon users should always have local credentials to be immune to failures in remote services like [AniNIX/Sora](/AniNIX/Ubiqtorate/src/branch/main/roles/Sora). * Many services, like IRC, TheRaven, Heartbeat, Sora, and others will use a daemon user at the OS level. These should be local passwords. * At the OS, the admin will be the root user. * SSH should have one deprivileged user that is local. * IRC will have netadmins provisioned with local passwords; these netadmins will need a corresponding LDAP account only for IRCServices. Failure to log in with IRCServices is more acceptable than losing control of the daemon itself. The IRC modules can be unloaded and registration enabled if a local account is needed. -* Wiki can only be either LDAP-enabled or local; as we want unified credentials, loss of edit privileges for everyone is acceotable in the case that LDAP has failed. - * The following snippet can be used to lock down a specific wiki so only administrators (sysop) can edit. -
-$wgGroupPermissions['*']['edit'] = false; -$wgGroupPermissions['*']['read'] = false; -$wgGroupPermissions['user']['read'] = false; -$wgGroupPermissions['user']['edit'] = false; -$wgGroupPermissions['sysop']['read'] = true; -$wgGroupPermissions['sysop']['edit'] = true; -+ +## Template User Notification +``` +Hello,